/*The following script is for replacing a centered popup window. this is the code to place into the html <a href="http://www.domain.com/" onClick="popupCentered('http://www.apple.com/','500','300'); return false;">...</a>*/ var isNav4, isIE4, isMac; if (parseInt(navigator.appVersion.charAt(0)) >= 4) { isNav4 = (navigator.appName == "Netscape") ? true : false isNav6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 5) ? true : false isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? true : false isMac = (navigator.platform.indexOf("Mac") != -1) ? true : false } function popupCentered(url) { if (isNav4 || isIE4) { var screenPosX,screenPosY; screenPosX = (screen.availWidth - 418) / 2; screenPosY = (screen.availHeight - 595) / 2;  if (isNav4 || isNav6) {  window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1, copyhistory=0,width=418, height=595 ,screenX='+screenPosX+',screenY='+screenPosY+'' ); } if (isIE4) { newwin = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1, copyhistory=0,width=418 ,height=595 ,left='+screenPosX+',top='+screenPosY+'');  } } else { window.open(url,'', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1, copyhistory=0,width=418 ,height=595'); } }