var http = createRequestObject();

function createRequestObject()
 {  
	// find the correct xmlHTTP, works with IE, FF and Opera
	var xmlhttp;
	try {
  	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch(e) {
    try {
    	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(e) {
    	xmlhttp=null;
    }
  }
  if(!xmlhttp&&typeof XMLHttpRequest!="undefined") {
  	xmlhttp=new XMLHttpRequest();
  }
	return  xmlhttp;
}
function loginRequest(email,pwd)
{
   alert(email);
  var url="dologin.php?email="+email+"pwd="+pwd;  
  http.open("GET",url,true);   
  http.onreadystatechange = handleHttpResponse_chk; 
  http.send(null);
}
function handleHttpResponse_chk()
{
 if (http.readyState == 4)
  	{                
    	if(http.status==200) 
		{     
	      var results=http.responseText; 
		  	if(http.responseText=="false")
			{
			  alert("Username or Password does not match")
		    }
		}  
    }  
}