It may be possible, but is definitely beyond me.
Links will open by default the the window that calls, them unless re-directed with target="_blank" etc.
The problem is to return to a previous page, easy with java in the same window "onClick=history.go(-1)" but this is the first page in the the pop up window - so that won't work.
Closing the Pop up will return focus to the calling window, but how then can a link be passed?
I would be interested to learn if you solve this one Barry.