var xmlHttp;
function LoginHere()
{
 document.getElementById('Login_Info').innerHTML="";
 var name=document.getElementById('uid').value;
 var pwd=document.getElementById('pwd').value;
 var utype=document.getElementById('usrtype').value;
/*if (name.length==0 || pwd.length==0)
 { 
 document.getElementById("Login_Info").innerHTML="Enter the user name and Password properly";
 document.getElementById("Login_Info").style.border="0px";
 return;
 }*/
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
 
var url="Login.php";
url=url+"?name="+name+"&pwd="+pwd+"&utype="+utype;
/*url=url+"&sid="+Math.random()*/
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
//document.getElementById('livesearch').innerHTML="<b>Updated</b>";
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  //alert(""+xmlHttp.responseText);
 document.getElementById("Login_Info").innerHTML=xmlHttp.responseText;
 document.getElementById("Login_Info").style.border="1px solid #A5ACB2";
 } 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  //xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
