var ajax = new sack();
function getCityList(sel)
{
	var nomarchy_id = sel.options[sel.selectedIndex].value;
	
	if(nomarchy_id.length>0){
		ajax.requestFile = 'includes/get_city/get_city.php?nomarchy_id='+nomarchy_id;	// Specifying which file to get
		ajax.onCompletion = createCities;	// Specify function that will be executed after file has been found
		ajax.runAJAX();		// Execute AJAX function
	    document.getElementById('city_id').options.length = 0;	// Empty city select box

	}
}

function createCities()
{
	var obj = document.getElementById('city_id');
	eval(ajax.response);	// Executing the response from Ajax as Javascript code	
}

		

