This is a pure HTML/Javascript question and
you should ask in that forum.
One approach: your popup can reference the opening window via the
opener attribute. Use that reference to cause a hidden form in the main page to submit itself with approriate parameter values.
hth,
bear