     var win= null;
        function NewWindow(mypage,myname,w,h,scroll){
        var winl = (screen.width-w)/2;
        var wint = (screen.height-h)/2;
        var settings  ='height='+h+',';
            settings +='width='+w+',';
            settings +='top='+wint+',';
            settings +='left='+winl+',';
            settings +='scrollbars='+scroll+',';
            settings +='resizable=yes';
        win=window.open(mypage,myname,settings);
        if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
        }

        <!--
        function MM_reloadPage(init) {  //reloads the window if Nav4 resized
        if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
            document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
        else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
        }
        MM_reloadPage(true);
