	//=================================================
	//set your URL Variable
	//=================================================
	var murl="/myaccount/cityStateSuggest.asp";

	//=================================================
	//checks to see if the browser will support ajax
	//=================================================
	function GetXmlHttpObject(){
	  var xmlHttp=null;
	  try{
		xmlHttp=new XMLHttpRequest();
		}
	  catch (e){
		try{
		  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		catch (e){
		  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		}
	  return xmlHttp;
	} 

	//=================================================
	//Sets action when asp page returns values
	//=================================================
	function stateChanged(){ 
		if (xmlHttp.readyState==4){ 
			if(xmlHttp.responseText==""||xmlHttp.responseText==null){
				document.getElementById("txtresults").style.display="none";
			}else{
				document.getElementById("txtresults").style.display="block";
				document.getElementById("txtresults").innerHTML=xmlHttp.responseText;
			}
		}
	} 

	//=================================================
	//Main function that sends the input txt to asp
	//=================================================
	function getResults(x,y){
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url=murl;
		url=url+"?search="+x+"&countryid="+y;
		xmlHttp.onreadystatechange=stateChanged;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
		return;
	}
