var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if(v>=3) self.focus();


if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
   if (navigator.appName == "Netscape") {
      isNav4 = true
      isIE4 = false
   } else {
      isIE4 = true
      isNav4 = false
   }
}

function popupWindow(goLocation) {
ww=375;  wh=140;
positionCode='';
if(v>=4) {
sw  = screen.width;           sh  = screen.height;
wbx = Math.round((sw-ww)/2);  wby = Math.round((sh-wh)/2);
if(isExplorer) positionCode='left='+wbx+',top='+wby+',';
if(isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
}

newWindow=window.open(goLocation,'Preview',
'width='+ww+',height='+wh+','+
positionCode+
'toolbar=0,'+
'scrollbars=0,'+
'resizable=0');
if(isNetscape && v>=3) newWindow.focus();
}