var xmlHttp
function FillLocation(m,n,f)
{
document.all.loading3.style.visibility = "visible";
document.getElementById("nLocationID2").disabled = true;
table = "location";
xmlHttp=GetXmlHttpObject3();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="fill.php";
url=url+"?m="+m+"&n="+n+"&f="+f+"&pass="+table;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged4;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged4() 
{ 
if (xmlHttp.readyState==4)
{
//var xmlDoc=xmlHttp.responseXML.documentElement;
document.getElementById("location").innerHTML = xmlHttp.responseText;
document.all.loading3.style.visibility = "hidden";
document.getElementById("nLocationID2").disabled = false;
}
}

function GetXmlHttpObject3()
{
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;
}