// JavaScript Document
var xmlHttp;


	
function showCustomer(users)
{
	xmlHttp=GetXmlHttpObject()
	
	if (xmlHttp==null) {
  	    alert ("Your browser does not support AJAX!");
  	    return;
  	} 
	 
	//if (users != "") { 
	    var url="myphp.php?usernm="+users;
		window.location="#form";
		//alert(url);
	//} else { 
	   // return;
    //    }

	
	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;
		initCountry('US');
	}
}





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;
}

