function fillTypeJobs(country, type_id){
	if(!country || country == null || country == '') return;
	var types = $('types');
	
	for(var i = types.options.length; i != 1; i--){
		types.options[i] = null;
	}
	var selectedIndex;
	types.options[0] = new Option("-- Всички --", "");
	for(var i = 0; i < jobs[country].length; i++){
		types.options[i+1] = new Option(jobs[country][i], jobs_k[country][i]);
		if( type_id == jobs_k[country][i] ) selectedIndex = i+1; 
	}
	if(type_id != 0) types.selectedIndex = selectedIndex;
	return true;
} 
