Hi there Sitepoint

I have a page where users link to content which appears in smaller pop up windows.

In my current set up when a user calls a pop up window and then clicks on the (original) browser window behind it, the pop up obviously dissappears behind. If the user then calls another pop up the content of the pop up changes but stays hidden behind the original window.

Is there anyway of bringing this forward to the front?

I use this script to generate pop ups:

function windowOpener() {
window.open('','win','toolbar=no,location=no,scrolling=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=500,height=500,top=20,left=20');
}

calling the function using this:

<a href="content.html" target="win" onclick="windowOpener()">


Any help would be much appreciated!