function get_cities(country_id, div_id){

var select = document.getElementById(div_id);      
var loader_gif = document.getElementById('loader_gif');      

if(country_id!=0){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
          
		
	//alert(ajaxRequest.responseText);
        select.innerHTML = ajaxRequest.responseText;
	select.disabled = false;
	loader_gif.style.display = 'none';	
		}
	}
	loader_gif.style.display = 'block';	
	var queryString = "./script.php?action=show_cities&country_id=" + country_id + "&select_name=" + div_id + "&ms= " + new Date().getTime();
	//alert(queryString);
	ajaxRequest.open("GET",  queryString, true);    
	ajaxRequest.send(null); 
}
else{ 
	//alert(select.innerHTML);
    select.innerHTML = '<select class="sel" disabled><option value="0"> -- Válassz -- </option></select>';
    select.disabled = true;
    }
}
