var xmlServiceHttp; var xmlServiceDoc; function createxmlServiceHttpRequest() { if (window.ActiveXObject) { xmlServiceHttp = new ActiveXObject("Microsoft.xmlHttp"); } else if (window.xmlServiceHttpRequest) { xmlServiceHttp = new xmlServiceHttpRequest(); } } function handleServiceStateChange() { this.xmlServiceDoc = xmlServiceHttp.responseText; showInfo(); } function showInfo(){ var info = this.xmlServiceDoc.split(","); if(info[0] == 200){ alert("ÃÜÂëÐ޸ijɹ¦£¡"); location.href = '/security/login/login.jsp'; return; } alert(info[1]); location.href = '/security/login/passwd.jsp?timestamp=1715885523309'; } function passwordCheck(form){ createxmlServiceHttpRequest(); xmlServiceHttp.open("POST", "/security/PasswordCheck", false); xmlServiceHttp.onreadystatechange = handleServiceStateChange; xmlServiceHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); var inputstr = "usercode="+form.acct.value+"&password="+encodeURIComponent("(md5)" + b64_md5(form.pwd.value + form.pwd.value))+"&newpassword="+encodeURIComponent("(md5)"+b64_md5(form.newpwd.value+form.newpwd.value))+"&authencode="+form.j_authencode.value; xmlServiceHttp.send(inputstr); }