////////////countries list.
var xmlHttp_ctry
function showuser(qry)
{

if (qry.length==0)
  { 
  //document.getElementById("suburbList").innerHTML="";
 // return;
  }
  
xmlHttp_ctry=GetXmlHttpObject()
if (xmlHttp_ctry==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  document.getElementById("error").style.display = "none";
  document.getElementById("process").style.display = "block";
var urll="ajax/getuser.php";
urll=urll+"?q="+qry;
urll=urll+"&sid="+Math.random();

xmlHttp_ctry.onreadystatechange=stateChanged11;

xmlHttp_ctry.open("GET",urll,true);
xmlHttp_ctry.send(null);
} 

function stateChanged11() 
{ 
if (xmlHttp_ctry.readyState==4)
{ 
document.getElementById("suburbList").innerHTML=xmlHttp_ctry.responseText;
if(document.getElementById("suburbList").innerHTML!="")
{
document.getElementById("suburbList").style.display = "block";
document.getElementById("error").style.display = "block";
document.getElementById("process").style.display = "none";
document.getElementById("ok").style.display = "none";
//document.form1.username.focus()
}
else
{
document.getElementById("ok").style.display = "block";
document.getElementById("process").style.display = "none";
}
}


}

function GetXmlHttpObject()
{
var xmlHttp_ctry=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp_ctry=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp_ctry=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp_ctry=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp_ctry;
}
