var zagruz3 = '<select class="back_for_input"><option>Loading...</option></select>'; 
	  
	  
	  function handleHttpResponse() {	
	   document.getElementById('city_n').innerHTML = zagruz3;
		if (http.readyState == 4) {
			  if(http.status == 200) {
			  	var results=http.responseText;
			  document.getElementById('city_n').innerHTML = results;
			  }
  			}
		}
		
	    function requestCity(cat) { 
			 	if (cat != 0) {
			var countr = document.getElementById("country").value;
			 var str='get_city.php?country='+escape(countr);
			
		    	}
					
					
			 http.open("GET", str, 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
