Need to set a panel state for a pop-up on a different screen

I have a list of options on one page (Page 1) that needs to open up a pop-up window of a different page (Page 2). Based on a option selected on Page 1, I need that corresponding dynamic panel on Page 2 to set when opening up in a Pop-up window.
I have tried using global variables, but that doesn’t seem to work.

Hi , it should work using global variables , just pass the variable and let IF clausal make it work. send src here so I can look at it.

Regards Karel

I set the global variable for each selection and did an OnPageLoad condition with a condition for each selection. Not working.

Finally got it to work with the global variables.