var xmlHttp
function getxy(str, recid)
{ 
xyxmlHttp=GetXmlHttpObject()
if (xyxmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var xyurl="./mapfile.php"
xyurl=xyurl+"?q="+str+"&recid="+recid
xyurl=xyurl+"&sid="+Math.random()
xyxmlHttp.onreadystatechange=xystateChanged 
xyxmlHttp.open("GET",xyurl,true)
xyxmlHttp.send(null)
}

function xystateChanged() 
{ 
if (xyxmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("map").innerHTML=xyxmlHttp.responseText 
 } 
}function xyGetXmlHttpObject()
{
var xyxmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xyxmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xyxmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xyxmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xyxmlHttp;
}


