function isValidStringForURL(b){var c=new Array(",",";","<",">",".",'"',"'","#","\\","/","&","?","~","!","@","$","%","^","*","(",")","+","{","}","|");for(var a=0;a<c.length;a++){if(b.indexOf(c[a])>=0){return false}}return true}function checkRecovery(){if(hasRecovery==false){document.getElementById("forgetPass").style.display="none"}}function getInvalidCharsDisplayString(){var a=", ; < > . \" ' # \\ / & ? ~ ! @ $ % ^ * ( ) + { } or |";return a}function setCookie(b,c){var a=b+"="+escape(c)+"; path=/";document.cookie=a}function getCookie(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))}function initSession(){setSession()}function setSession(){var a=getCookie("sctSession");if(a==null||a==""){a=1}else{++a}setCookie("sctSession",a);setTimeout("setSession()",3000)}var lastHit;var testCount=0;var xWindow;function checkSession(a){xWindow=a;lastHit=getCookie("sctSession");setTimeout("testCookie()",2000)}function testCookie(){var a=getCookie("sctSession");if(a!=null||a!=""){a=parseInt(a);lastHit=parseInt(lastHit);if(a==lastHit&&testCount<=15){++testCount;setTimeout("testCookie()",2000)}else{if(lastHit<a&&testCount<=15){testCount=0;lastHit=a;setTimeout("testCookie()",2000)}else{deleteCookie();closeWindow()}}}else{closeWindow()}}function closeWindow(){if(xWindow=="cal"){stats="";calendarWindow=window.open("/misc/windowcloser.html","calendarWindow",stats)}else{parent.parent.location.href="/misc/windowcloser.html"}};
