var isNS = (navigator.appName.indexOf("Netscape") != -1) ? true : false; var isNS4 = (isNS && parseFloat(navigator.appVersion) >= 4) ? 1 : 0; var isIE = (document.all) ? 1 : 0; var isIE5 = (isIE && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0; function WinCenter(wfile, wname, ww, wh) { var maxwidth, maxheight; var xpos, ypos; if (isNS4 || isIE) { maxwidth = (isNS4?innerWidth:screen.availWidth); maxheight = (isNS4?innerHeight:screen.availHeight); xpos = maxwidth/2 - ww/2; ypos = maxheight/2 - wh/2 -20; } return open(wfile, wname,"left="+xpos +",top="+ypos +",width="+ww +",height="+wh +",resizable=1,scrollbars=1,menubar=no"); } var PhotoWin; function ViewPhoto(filename) { if (PhotoWin==null || PhotoWin.closed) { PhotoWin = WinCenter("ViewPhoto.asp?src="+filename,"PhotoWin",310,330); } else { PhotoWin.location.href = "ViewPhoto.asp?src="+filename; } return; }