var priv=false;
var juridical=false;
var vac_city=false;
var press_city=false;
var selv=false;
var selv1=false;
var sel_region1=false;

function goto_private(){
	if(priv){
		location.href='/index.php?id='+document.getElementById('persone').value;
	}else priv=true;
}

function goto_juridical(){
	if(juridical){
		location.href='/index.php?id='+document.getElementById('juridical').value;
	}else juridical=true;
}

function select_vac_city(){
	if(vac_city){
		var cityid=document.getElementById('city_vac').value;
		ajax_get_data('/getdata.php?operation=get_vacances&parent='+cityid,document.getElementById('content'));
	}else vac_city=true;	
}

function select_press_city(lang){
	var cityid=document.getElementById('city').value;
	ajax_get_data('/getdata.php?operation=get_press&parent='+cityid+'&lang='+lang,document.getElementById('content'));
}

function select_press_city_our(id){
	var cityid=document.getElementById('city').value;
	//ajax_get_data('/getdata.php?operation=get_press_our&parent='+cityid+'&lang='+lang,document.getElementById('content'));
	location.href="/index.php?id="+id+"&city="+cityid;
}

function sel(){
	if(selv)document.getElementById('form1').submit();
	else selv=true;
}

function sel1(){
	if(selv1)document.getElementById('form1').submit();
	else selv1=true;
}

function sel_region(){
	if(sel_region1)location.href='/index.php?id='+document.getElementById('region').value;
	else sel_region1=true;
}