Passing values from child page fancy popup window to parent page window

The easiest way to achieve this is for the child window to attach a parent’s function to the collect event. That way, the parent window will know where the event occurred, and can take care of closing the child window too.