/*
###############################################
## file...	
## desc...	
##
## date...	7/14/2008
## rev....	
###############################################
*/

function callAjax()
{
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
  {
 		if(xmlHttp.readyState==4)
   	{
   		var optionVals = eval(xmlHttp.responseText);
    	
			for(var i=1;i<optionVals.length;i++){
 				document.adv_search_frm.aCity.options[i]=new Option(optionVals[i], optionVals[i], false, false)
   			//document.getElementById('cityDiv').innerHTML=xmlHttp.responseText;
   		}
 		}
 	}
  
	/*xmlHttp.open("POST","getcity.php",true);
  xmlHttp.send("st="+document.getElementById('asState2').value);*/
  var tmp = "getcity.php?state=";
  tmp += document.getElementById('aState').value;
  xmlHttp.open('GET', tmp, true);
  xmlHttp.send('');
}