You may want to investigate the
window.parent[
^] property. Assuming that the popup is actually a div with a higher z-order displaying contents from another page using an iframe; this will allow you to interact with the "parent" page.
Regards
Espen Harlinn