var xmlHttp

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;
}

// *******************
// ** SHOW MCounty  **
// *******************
function showMCounty(strState)
{ 
var smc_xmlHTTP
smc_xmlHTTP=GetXmlHttpObject();
if (smc_xmlHTTP==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="JS/drpdwn_mcounty.asp";
url=url+"?q1="+strState;
url=url+"&sid="+Math.random();
smc_xmlHTTP.onreadystatechange=function(){
 if (smc_xmlHTTP.readyState==4)
 { 
  document.getElementById('myMCounty').innerHTML=smc_xmlHTTP.responseText;
 }
}
smc_xmlHTTP.open("GET",url,true);
smc_xmlHTTP.send(null);
}

// *******************
// ** SHOW MCity    **
// *******************
function showMCity(strCounty, strState)
{ 
var smc2_xmlHTTP
smc2_xmlHTTP=GetXmlHttpObject();
if (smc2_xmlHTTP==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="JS/drpdwn_mcity.asp";
url=url+"?q1="+strCounty;
url=url+"&q2="+strState;
url=url+"&sid="+Math.random();
smc2_xmlHTTP.onreadystatechange=function(){
 if (smc2_xmlHTTP.readyState==4)
 { 
  document.getElementById('myMCity').innerHTML=smc2_xmlHTTP.responseText;
 }
}
smc2_xmlHTTP.open("GET",url,true);
smc2_xmlHTTP.send(null);
}

// *******************
// ** SHOW HCounty  **
// *******************
function showHCounty(strState)
{ 
var shc_xmlHTTP
shc_xmlHTTP=GetXmlHttpObject();
if (shc_xmlHTTP==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="JS/drpdwn_hcounty.asp";
url=url+"?q1="+strState;
url=url+"&sid="+Math.random();
shc_xmlHTTP.onreadystatechange=function(){
 if (shc_xmlHTTP.readyState==4)
 { 
  document.getElementById('myHCounty').innerHTML=shc_xmlHTTP.responseText;
 }
}
shc_xmlHTTP.open("GET",url,true);
shc_xmlHTTP.send(null);
}

// *******************
// ** SHOW HCity    **
// *******************
function showHCity(strCounty, strState)
{ 
var shc2_xmlHTTP
shc2_xmlHTTP=GetXmlHttpObject();
if (shc2_xmlHTTP==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="JS/drpdwn_hcity.asp";
url=url+"?q1="+strCounty;
url=url+"&q2="+strState;
url=url+"&sid="+Math.random();
shc2_xmlHTTP.onreadystatechange=function(){
 if (shc2_xmlHTTP.readyState==4)
 { 
  document.getElementById('myHCity').innerHTML=shc2_xmlHTTP.responseText;
 }
}
shc2_xmlHTTP.open("GET",url,true);
shc2_xmlHTTP.send(null);
}
