function set_active_region(str, id, is_city, txt_x, txt_y, map_country_id) {
	
	if(typeof(map_country_id) == 'undefined') map_country_id = 1; //po default country-to e bulgaria
	
	//alert("str: " + str + "\nid: " + id + "\nis_city: " + is_city + "\ntxt_x: " + txt_x + "\ntxt_y: " + txt_y + "\nmap_country_id: " + map_country_id); return;
	// cur_lang se vzema ot /smarty/templates/header.tpl
	
	/**
	 * select-irame si durjavata i sled tova si zarejdame neinite oblasti
	 */
	temp = document.getElementsByName('country')[1];
	country_options = temp.options;
	
	for(i=0; i<country_options.length; i++) {
		if(country_options[i].value == map_country_id) country_options[i].selected = true;
		else country_options[i].selected = false;
	}
	
	adv_choosed_country(map_country_id, cur_lang, 'helper('+id+')');
	
}

function helper(id) {
	//alert(id);return;
	
	/**
	 * tuk si select-irame oblastta, kliknata ot kartata
	 */
	temp = document.getElementsByName('region')[1];
	region_options = temp.options;
	
	for(i=0; i<region_options.length; i++) {
		if(region_options[i].value == id) region_options[i].selected = true;
		else region_options[i].selected = false;
	}
	
	adv_choosed_region(id, cur_lang);
}

