function MESLOCK() { document.getElementById("js_lock").innerHTML=LANG_MES_LOCK; } function UNLOCK() { document.getElementById("lock2").style.display="none"; document.getElementById("lock3").innerHTML=""+LANG_LOGOUT+""; document.getElementById("icon_lock").className="icon-lock-open-7"; document.getElementById("js_lock").innerHTML=""; } function getCookie(name) { var matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" )); return matches ? decodeURIComponent(matches[1]) : undefined; } hash=getCookie('zh_usr'); if(hash) {UNLOCK();} function UNLOCKED(hash) { if(localStorage.getItem("SAVED_DATE['"+hash+"']")) { var data=localStorage.getItem("SAVED_DATE['"+hash+"']");} else { var data=''; } var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");} xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4 && xmlhttp.status==200) { if(xmlhttp.responseText=="NO DATA UNLOCKED") { } else if(xmlhttp.responseText=="DATA CLEAR") { localStorage.clear(); } else { var re = /\n/; var ar=xmlhttp.responseText.split(re); for(var i=0;i

'; DIVS[1]='



'; DIVS[2]='

'; document.getElementById("js_lock").innerHTML=''+obj.textContent+'
' +DIVS[n]; document.getElementById("js_lock_message").innerHTML=''; } function CHECK(h,n) { function timer(h) { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200) { if (xmlhttp.responseText=="OK") { CHECK('13',2); document.getElementById("js_lock_message").innerHTML="Email validate!"; UNLOCK(); function CLOSE() { document.getElementById("js_lock_message").innerHTML=""; } setTimeout(CLOSE, 10000); document.getElementById("lock2").style.display="none"; document.getElementById("lock3").innerHTML=""+LANG_LOGOUT+""; frame1.UNLOCK(); } }} xmlhttp.open("GET","/usr/login.php?s=check&hash="+h,true); xmlhttp.send(); } if(n==1) {CH=setInterval(timer, 2000,h);} else { clearInterval(CH);} }