// JavaScript Document
var xmlHttp=false;
function createObject(){
	try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e2){}
		if(!xmlHttp && typeof XMLHttpRequest != "undefined"){
			try{xmlHttp =new XMLHttpRequest();
			}catch(e3){xmlHttp=false;}
		}
	}
}
function httpSetting(){
 if(xmlHttp.readyState == 4){
 	if(xmlHttp.status == 200 || xmlHttp.status == 0){
			InterValData(xmlHttp.responseText);
	}
 }
}
function getData(e,p){
	document.getElementById("LoginShowManage").innerHTML = "登陆中...";
	createObject();
	var url = "ajax.aspx?e="+e+"&p="+p;
	if(!p){ url = "ajax.aspx?b=e"}
	 xmlHttp.open("post",url,true);
	 xmlHttp.onreadystatechange=httpSetting;
	 //xmlHttp.setRequestHeader("If-Modified-Since","0");
	 xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	 xmlHttp.send(null);
	 return false
}

function InterValData(Txt){
	var statu = Txt.substring(0,5);
	var Info = Txt.substring(6)
	if(statu == "false"){
		document.getElementById("LoginShowManage").innerHTML = Info;
	}else if(statu == "trues"){
		window.location.reload();
	}else{
		alert("意外出错")
	}
}