Pop-Up Centered Window

<HTML>
<HEAD><TITLE>
Pop-Up Centered Window</TITLE></HEAD>

<SCRIPT>

function OpenNewWin(URL) {
    
// screen.width & screen.height are the setting/resolution of the user's computer monitor
    
// 580 & 400 are the width & height of the new pop-up window
     var screenW = (screen.width / 2) - (580 / 2);
     var screenH = (screen.height / 2) - (400 / 2);    

     newWindow = open(URL, "newWin","
                                      "width=580,height=400,top=" + screenH + ",left=" + screenW);
}

OpenNewWin("gallery.htm")

</SCRIPT>

<BODY>

etc...

</BODY>
</HTML>