function usercontrol_login_ascx(){} function getlogin(usrname,passwd,url,_cb,_er) { var r=null; if(_er!=null&&typeof(_er)!="function")_er=null; if(_cb!=null&&typeof(_cb)!="function")_cb=null; if(_xh==null)_xh=new XMLHttpRequest(); _xh.open("POST","/ajaxwrapper/ASP.usercontrol_login_ascx,App_Web_nnh4ybxr.ashx?m=getlogin",_cb!=null?true:false); if(usrname!=null&&usrname!="") _xh.setRequestHeader("usrname",(usrname+'').replace(/\r/g,"#r#").replace(/\n/g,"#n#")); if(passwd!=null&&passwd!="") _xh.setRequestHeader("passwd",(passwd+'').replace(/\r/g,"#r#").replace(/\n/g,"#n#")); if(url!=null&&url!="") _xh.setRequestHeader("url",(url+'').replace(/\r/g,"#r#").replace(/\n/g,"#n#")); if(_cb!=null)_xh.onreadystatechange=function(){ try{ if(_xh.readyState==4) { if(_xh.status!=200) {if(_er)_er(_xh.status,_xh)} else { try{r=_jso(_xh.responseText);}catch(e){if(_er)_er(e,_xh);} _cb(r,_xh); } } }catch(e){if(_er)_er(e,_xh);}};_xh.send('');if(_cb==null){ try{r=_jso(_xh.responseText);}catch(e){if(_er)_er(e,_xh);} return r;} }