document.write('
') var xmlhttp = false; if(window.XMLHttpRequest) { //Mozilla 浏览器 xmlhttp = new XMLHttpRequest(); if (xmlhttp.overrideMimeType) {//设置MiME类别 xmlhttp.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { // IE浏览器 try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { } } } //状态改变事件处理函数:处理返回的信息 function processRequest() { if (xmlhttp.readyState == 4) { // 判断对象状态 if (xmlhttp.status == 200) //正常返回信息,状态编号200 { // 信息已经成功返回,开始处理信息 var result=xmlhttp.responseText; if(result!="0") { alert("登录成功!"); //window.location.href("http://www.alighting.cn/Controls/index/login.aspx?userID="+result); } else { alert("用户名或密码错误!") } } //else //{ //页面不正常 // alert("您所请求的页面有异常。"); //} } } function login_press() { if(event.keyCode==13) { event.keyCode=9; document.getElementById('imgLoginBtn').click(); return false; } return false; } function funname() { var skey = document.getElementById ("txtFDCUserName").value; if(skey=="用户名") { document.getElementById ("txtFDCUserName").value=""; document.getElementById ("txtFDCUserName").focus(); } } function funpass() { var skey = document.getElementById ("txtFDCPassword").value; if(skey=="密码密码密码") { document.getElementById ("txtFDCPassword").value=""; document.getElementById ("txtFDCPassword").focus(); } } function Button1_onclick() { var username=document.getElementById("txtFDCUserName").value; var password=document.getElementById("txtFDCPassword").value; if(username == "" || password == "") { alert("对不起,请输入用户名或密码!"); if(username == "") { document.getElementById("txtFDCUserName").focus(); } else { document.getElementById("txtFDCPassword").focus(); } return false; } else { //var url="http://reg.alighting.cn/WebLogin.aspx?FDCUserName="+escape(username)+"&FDCPassWord="+escape(password); //xmlhttp.open("post", url, true); //xmlhttp.onreadystatechange = processRequest; //xmlhttp.send(null); window.location.href("http://reg.alighting.cn/WebLogin.aspx?FDCUserName="+escape(username)+"&FDCPassWord="+escape(password)); } return false; }