// Javascript // This function is used to open a new window var win = null; function MM_openBrWindow(mypage,myname,w,h,features) { var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; if (winl < 0) winl = 0; if (wint < 0) wint = 0; var settings = 'height=' + h + ','; settings += 'width=' + w + ','; settings += 'top=' + wint + ','; settings += 'left=' + winl + ','; settings += features; win = window.open(mypage,myname,settings); win.window.focus(); } /* function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } */ function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } width = screen.availWidth-100; height = screen.availHeight; function right_answer() { window.open(location.search.substring(1),'outside','toolbar,status,location,menubar,scrollbars,resizable,width=' + width + ',height=' + height + ',screenX=0,screenY=0,top=0,left=0'); } function showhidePI(divObj1) { state = document.getElementById(divObj1).style.display; if(state != null && state == "none") { document.getElementById(divObj1).style.display = ""; } else { document.getElementById(divObj1).style.display = "none"; } }