var xmlHttp



function changeMarqueeImage() 
{ 
document.getElementById("editregion5").style.display="none";
document.getElementById("editregion6").style.display="none";

document.getElementById("editregion5b").style.display="inline";
document.getElementById("editregion6b").style.display="inline";
}





function showCustomer(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="_search_sites/getcustomer.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
document.getElementById("txtHint").innerHTML="<div padding-left:0px; text-align: left;><font size=+1><br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src=images/loading_animation_md.gif align=absmiddle> Searching Database...</font><br></div>";

xmlHttp.open("GET",url,true);
xmlHttp.send(null);}	



function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
changeMarqueeImage();
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}