';var markCross='';function password(){document.getElementById("pwd").type="password";}function spassword(){document.getElementById("spwd").type="password";}function userCheck(){var name=document.getElementById("user").value;var nameChkLength=name.trim().length;var regExp=new RegExp("^[a-zA-Z0-9]+$");if(nameChkLength<10||nameChkLength>100){document.getElementById("userCheck").innerHTML=markCross;}else if(!regExp.test(name)){document.getElementById("userCheck").innerHTML=markCross;}else{var xhr=new XMLHttpRequest();var url="/luckyday/api/post/user";var data="u="+name;xhr.open("post",url);xhr.onload=function(){var result=this.responseText;if(result==="0"){document.getElementById("userCheck").innerHTML=markCheck;}else{document.getElementById("userCheck").innerHTML=markCross;}};xhr.onerror=function(e){document.getElementById("userCheck").innerHTML=markCross;};xhr.timeout=10000;xhr.ontimeout=function(e){document.getElementById("userCheck").innerHTML=markCross;};xhr.setRequestHeader("content-type","application/x-www-form-urlencoded");xhr.send(data);}}function pwdCheck(){var pwd=document.getElementById("pwd").value.trim().length;if(pwd<10||pwd>100){document.getElementById("pwdCheck").innerHTML=markCross;}else{document.getElementById("pwdCheck").innerHTML=markCheck;}}function spwdCheck(){var spwd=document.getElementById("spwd").value.trim().length;if(spwd<20||spwd>100){document.getElementById("spwdCheck").innerHTML=markCross;}else{document.getElementById("spwdCheck").innerHTML=markCheck;}}