// JavaScript Document
function exit()
{
	var xmlHttp = false;
	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			try{
				xmlHttp = new XMLHttpRequest();
			}catch(e){}
		}
	}
	// Get the city and state from the web form

	var url = "/exit.php";
	//alert(url);
	// Open a connection to the server
	xmlHttp.open("GET", url);
	// Setup a function for the server to run when it's done
	xmlHttp.onreadystatechange = function(){
		if (xmlHttp.readyState == 4)
		{
			if(xmlHttp.status == 200)
			{
				//alert(xmlHttp.responseText);
				if(xmlHttp.responseText == 0)
				{
				alert('提示：用户名或密码不正确，请重试'); 
				
				}else
				{
					document.getElementById("loginstr").innerHTML=xmlHttp.responseText;
				}
			}
		}
		return false;
	}
	xmlHttp.send(null);
}