Hello, does anyone know how to do this?

This is the situation:

You have a window with a maybe 10 or 20 links.

Each link opens a pop up.

What needs to be done is have each pop-up window automatically close upon clicking any link the parent window.

I know I can use the <onBlur=selfclose> command for a pop-up to automatically close but I need it to close only if any one of the links is clicked in the parent window and not just if the window focus blurs from clicking on any window on the desktop.

If there is a page default thing involved, how could this be done alternately by clicking some of the links in the parent window, not necessarily any link.

Thanks for any suggestions/solutions.