锘 function GetXmlHttpObject() { //锟斤拷锟斤拷XMLHttpRequest锟斤拷锟斤拷锟斤拷锟斤拷锟酵和斤拷锟斤拷HTTP锟斤拷锟斤拷锟斤拷锟斤拷应 xmlHttpObj = null; try { // FireFox Opera 8.0+ Safari xmlHttpObj = new XMLHttpRequest(); if(xmlHttpObj.overrideMimeType) { xmlHttpObj.overrideMimeType('text/xml'); } } catch(e) { // IE try { xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttpObj; } function StateChanged() { /* readyState 0: (未锟斤拷始锟斤拷)锟斤拷没锟叫碉拷锟斤拷send()锟斤拷锟斤拷 1: (锟斤拷锟斤拷)锟窖碉拷锟斤拷send()锟斤拷锟斤拷锟斤拷锟斤拷锟节凤拷锟斤拷锟斤拷锟斤拷 2: (锟斤拷锟斤拷锟斤拷锟?send()锟斤拷锟斤拷执锟斤拷锟斤拷桑锟斤拷丫锟斤拷锟斤拷盏锟饺拷锟斤拷锟接︼拷锟斤拷锟 3: (锟斤拷锟斤拷)锟斤拷锟节斤拷锟斤拷锟斤拷应锟斤拷锟斤拷 4: (锟斤拷锟?锟斤拷应锟斤拷锟捷斤拷锟斤拷锟斤拷桑锟斤拷锟斤拷锟斤拷诳突锟斤拷说锟斤拷锟斤拷锟?/ if(___xmlHttp.readyState == 4) { if(___xmlHttp.status == 200) { var text = ___xmlHttp.responseText; if(text=="True" || text=="true") { SetValidateState(1); ___IsValidate=true; } else { SetValidateState(2); ___IsValidate=false; } } else { SetValidateState(-1); ___IsValidate=false; } } } var ___xmlHttp=null; var ___IsValidate=false; function GetIsValidate(inputCode) { if(___xmlHttp==null) ___xmlHttp = GetXmlHttpObject(); if(___xmlHttp == null) return false; SetValidateState(0); var url = "?___command=GetIsValidate&___param="+inputCode+"&___clientRandom=" + Math.random(); ___xmlHttp.open("GET", url, true); ___xmlHttp.onreadystatechange = StateChanged; ___xmlHttp.send(null); } function SetValidateState(state) { objs=document.getElementById("___authStr").getElementsByTagName("img"); objs[0].style.display=objs[1].style.display=objs[2].style.display="none"; if(state>=0 && state<=2) objs[state].style.display=""; }