var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function ___Vincent_AutoAuthCode_Ajax_Class() { var xmlHttp=null; this.IsValidate=false; this.GetXmlHttpObject=function() { //����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; } this.StateChanged=function() { /* readyState 0: (δ��ʼ��)��û�е���send()���� 1: (����)�ѵ���send()���������ڷ������� 2: (�������)send()����ִ����ɣ��Ѿ����յ�ȫ����Ӧ���� 3: (����)���ڽ�����Ӧ���� 4: (���)��Ӧ���ݽ�����ɣ������ڿͻ��˵�����*/ var instance=___Vincent_AutoAuthCode_Ajax_Instance; if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { var text = xmlHttp.responseText; if(text=="True" || text=="true") { instance.SetValidateState(1); instance.IsValidate=true; } else { instance.SetValidateState(2); instance.IsValidate=false; } } else { instance.SetValidateState(-1); instance.IsValidate=false; } } } this.GetIsValidate=function(inputCode,controlID) { if(xmlHttp==null) xmlHttp = this.GetXmlHttpObject(); if(xmlHttp == null) return false; if(inputCode.replace(" ","").length==0) return false; this.SetValidateState(0); var url = "AuthCode_Image.ashx?type=ajax&ControlID="+controlID+"&command=GetIsValidate¶m="+inputCode+"&clientRandom=" + Math.random(); xmlHttp.open("GET", url, true); xmlHttp.onreadystatechange = this.StateChanged; xmlHttp.send(null); } this.SetValidateState=function(state) { objs=document.getElementById("___Vincent_AutoAuthCode_Script_AuthValidateImages").getElementsByTagName("img"); objs[0].style.display=objs[1].style.display=objs[2].style.display="none"; if(state>=0 && state<=2) objs[state].style.display=""; } this.addEventHandler=function(oTarget, sEventType, fnHandler) { if (oTarget.addEventListener) { oTarget.addEventListener(sEventType, fnHandler, false); } else if (oTarget.attachEvent) { oTarget.attachEvent("on" + sEventType, fnHandler); } else { oTarget["on" + sEventType] = fnHandler; } } this.unvalidateSubmit=function(){return false;} } var ___Vincent_AutoAuthCode_Ajax_Instance=new ___Vincent_AutoAuthCode_Ajax_Class(); }