Example on targeting windows.

Clicking on this pop-up link will open a page in a new window that pops up. This new popup window has been named "mary"

Open me

The code to pop up a new window named "mary" that is 500 pixels wide by 400 pixels high, with scrollbars if needed and a status bar (no forward/back browser buttons, no url window, etc.)

<a href="#" onClick="MM_openBrWindow ('mypopuplink.htm','mary','status=yes,scrollbars=yes,width=500,height=400')">Open
me</a>

Because this pop-up window has been named, ("mary") then I can open any page inside "mary" as long as this window is still open. (If the user has closed the pop-up window, and then clicks on a link that is supposed to open a page in "mary" then a new window will pop up and be named "mary" to replace it.)

More on pop up windows and targeting