﻿ function VerifyUser(url,obj)    {     var xmlHttp;     try     {         xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");     }     catch(e)     {         xmlHttp = new XMLHttpRequest();     }     xmlHttp.open("get",url,true);     xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4 && xmlHttp.status == 200)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 switch(myResponse)                 {                     case "true":                         spanCls.dealRight(obj,"0");                     break;                     case "false":                         spanCls.dealWrong(obj,"2");                     break;                 }             }         }         xmlHttp.send(null);   }      function VerifyEmailAjax(url,str,e,e1,e2,e3,l)     {         var xmlHttp;         try         {             xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");         }         catch(e)         {             xmlHttp = new XMLHttpRequest();         }         xmlHttp.open("Post",url+".aspx",true);          xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 var infos=myResponse.split('$');                 var obj1=$(e);                 obj1.innerHTML=infos[0];                 var obj2=$(e1);                 obj2.innerHTML=infos[1];                 var obj3=$(e2);                 obj3.href=infos[2];                 var obj4=$(e3);                 if(l==null)                     obj4.href=infos[3];                 else                     obj4.href=l+infos[3];                             }         }         xmlHttp.setRequestHeader("Content-Length",str.length);   
        xmlHttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");            xmlHttp.send(str);     }  function VerifyMobile(url,obj)    {     var xmlHttp;     try     {         xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");     }     catch(e)     {         xmlHttp = new XMLHttpRequest();     }     xmlHttp.open("get",url,true);     xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4 && xmlHttp.status == 200)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 switch(myResponse)                 {                     case "false":                         spanCls.dealWrong(obj,"2");                     break;                     case "true":                         spanCls.dealRight(obj,"1");                     break;                 }             }         }         xmlHttp.send(null);   }     function GetInfoPost(url,obj,str)     {         var xmlHttp;         try         {             xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");         }         catch(e)         {             xmlHttp = new XMLHttpRequest();         }         xmlHttp.open("Post",url,true);          xmlHttp.onreadystatechange = function()         {             if(xmlHttp.readyState == 4)             {                 var myResponse;                 myResponse= xmlHttp.responseText;                 if(myResponse.length<=0)                     return;                 if(obj==null)                 {                     alert(myResponse);                     return;                 }                 document.getElementById(obj).innerHTML=myResponse;                              }         }         xmlHttp.setRequestHeader("Content-Length",str.length);   
        xmlHttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");            xmlHttp.send(str);     }               
