// JavaScript Document
var xmlHttp;


	
function showCustomer(emailid)
{
	xmlHttp=GetXmlHttpObject()
	
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX!");
  	return;
  	} 
	 
	 
	var url="myphp.php?usernm="+emailid;
	//alert(url);
	
xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}



function stateChanged() 
{ 
	if(xmlHttp.readyState==0) 
  {
	  document.getElementById("txtHint").innerHTML="<span class=span_green> not initialized</span>";
  }
  else if(xmlHttp.readyState==1) 
  {
	  document.getElementById("txtHint").innerHTML="<span class=span_green> Loading..</span>";
  }
  else if(xmlHttp.readyState==2) 
  {
	  document.getElementById("txtHint").innerHTML="<span class=span_green> Loading..</span>";
  }
  else if (xmlHttp.readyState==3)
	{ 
		document.getElementById("txtHint").innerHTML="<span class=span_green> Loading..</span>";
	}
	else if (xmlHttp.readyState==4)
	{ 
		document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	}
	
	
}





function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  	  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  	 try
    	{
		    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}
	catch (e)
    	{
		    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    	}
  }
return xmlHttp;
}

