var xmlhttp;


function showCustomer(str,lin){

  document.getElementById("err8").style.visibility = 'hidden';

xmlhttp=GetXmlHttpObject();
 if (xmlhttp==null)  {alert ("Your browser does not support AJAX!"); return; }

lin=lin.replace("http://", "");

var url="ajax/updaterm.php";
url=url+"?q="+str;
url=url+"&lin="+lin;
url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

}




function stateChanged(){
 if (xmlhttp.readyState==4)  {
  document.getElementById("RMHint2").innerHTML=xmlhttp.responseText;
  document.getElementById("RMHint").style.display = '';
 }
}











function showCustomerTemp(str,lin){

  document.getElementById("err9").style.visibility = 'hidden';

xmlhttp=GetXmlHttpObject();
 if (xmlhttp==null)  {alert ("Your browser does not support AJAX!"); return; }

lin=lin.replace("http://", "");

var url="ajax/updatetemp.php";
url=url+"?q="+str;
url=url+"&lin="+lin;
url=url+"&sid="+Math.random();

xmlhttp.onreadystatechange=stateChangedTemp;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

}

function stateChangedTemp(){
 if (xmlhttp.readyState==4)  {
  document.getElementById("TempHint2").innerHTML=xmlhttp.responseText;
  document.getElementById("TempHint").style.display = '';
 }
}













function GetXmlHttpObject(){
  if (window.XMLHttpRequest){return new XMLHttpRequest();}
  if (window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}
  return null;
}

