function getHTTPObject()
{
	if (window.ActiveXObject) 
		return new ActiveXObject("Microsoft.XMLHTTP");
		else if (window.XMLHttpRequest) 
		return new XMLHttpRequest();
		else 
		{
			alert("Your browser does not support AJAX.");
			return null;
		}
}

function doAjaxLogin(InUsername, InPassword)
{
	//alert(InUsername + " " + InPassword);
	
	xmlhttp = getHTTPObject();	
	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			alert(xmlhttp.responseText);
			
			if(xmlhttp.responseText=="Success")
		{
			window.location.reload();
			
		}
			
		}
	}
	xmlhttp.open("GET","../ajax/dologin.php?Username=" + InUsername + "&Password=" + InPassword + "",true);
	xmlhttp.send(null);
}