var url = "includes/city_info.php?state="; // The server-side script

function handleHttpResponse() {   
	if (http.readyState == 4) {
    	if(http.status==200) {
        	var cityresults = http.responseText;
            document.getElementById('city_info').innerHTML = cityresults;
			
			page('includes/location_info.php', 'location_info'); // call to change in store info...

        }
    }
}
       
function requestCityInfo() {     
	var sId = document.getElementById("state").value;
    http.open("GET", url + escape(sId), true);
    http.onreadystatechange = handleHttpResponse;
    http.send(null);
}

function getHTTPObject() {
  var xmlhttp;

  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
   
}
  return xmlhttp;

 
}
var http = getHTTPObject(); // We create the HTTP Object