//popupTutorial.js // used by States and all other solve files to popup Tutorial pages. var popUpWindow = null var windowCount = 0 var windowName = "popUpWindow" function openPopUpWindow(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){ winFeatures="menubar=no, scrollbars=yes, resizable=yes"; if(winHeight==600) winHeight=0.9*screen.availHeight; var defaultPixelLeft = 200 var defaultPixelTop = 20 windowName = "popUpWindow" + windowCount++ //unique name for each pop-up window closePopUpWindow() if (openPopUpWindow.arguments.length >= 4) winFeatures = "," + winFeatures else winFeatures = "" if (openPopUpWindow.arguments.length == 6) winFeatures += getLocation(winWidth, winHeight, winLeft, winTop) else winFeatures += getLocation(winWidth, winHeight, defaultPixelLeft, defaultPixelTop) popUpWindow = window.open(winURL, windowName, "width=" + winWidth + ",height=" + winHeight + winFeatures) popUpWindow.moveTo(screen.availWidth-winWidth-5,0); } function closePopUpWindow(){ if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) >=4) if(popUpWindow != null) if(!popUpWindow.closed) popUpWindow.close() } function getLocation(winWidth, winHeight, winLeft, winTop){ return "" } function writeYear() { var date=new Date(); var yy=date.getYear(); //alert(yy); document.write(yy); }