<!--

function change_sel(prefix,cnt,reg,cit) {

	var sel_country = document.getElementById(prefix+'_country');
	var sel_region = document.getElementById(prefix+'_region');
	var sel_city = document.getElementById(prefix+'_city');

	if (cnt === '') {
		sel_region.selectedIndex = 0;
		sel_region.options.length = 1;
		sel_city.selectedIndex = 0;
		sel_city.options.length = 1;
		return;
	}

	if (reg === '') {
		sel_city.selectedIndex = 0;
		sel_city.options.length = 1;
		return;
	}
	
	if (cit === '') {
		return;
	}
	
	if (cnt) {
		sel_region.options.length = 1;
		sel_city.options.length = 1;
		var rg = 0;
		
		// regions
		for (i=0; i < loc_region.length; i++)
			if (loc_region[i][2] == cnt) {
				if (rg == 0) rg = loc_region[i][0];
				sel_region.options[sel_region.options.length] = new Option(loc_region[i][1],loc_region[i][0]);
			}
		
		sel_region.selectedIndex = 1;
		
		// cities
		sel_city.options[sel_city.options.length] = new Option(all_locations,'');
		for (i=0; i < loc_cities.length; i++)
			if (loc_cities[i][2] == rg) sel_city.options[sel_city.options.length] = new Option(loc_cities[i][1],loc_cities[i][0]);

	} else if (reg) {
		sel_city.options.length = 1;
		sel_city.options[sel_city.options.length] = new Option(all_locations,'');
		for (i=0; i < loc_cities.length; i++)
			if (loc_cities[i][2] == reg) sel_city.options[sel_city.options.length] = new Option(loc_cities[i][1],loc_cities[i][0]);
	} else if (cit) {
		//location = 'lista_case.php?loc='+cit;
	}
}

-->