function vai_form_regioni(){
	if (document.form_sedi.regione.value == 'Seleziona una regione'){}
	else{
		namio = 'sedi_' + document.form_sedi.regione.value + '.php';
		location.href=namio;
	}
}
function vai_form_sedi() {
	if(document.form_sedi.guidelinks.value=="it"){
		document.getElementById("select_regioni").innerHTML = '<br><br><select name="regione" type=option onChange="vai_form_regioni();">'+
		'<option value="Seleziona una regione" selected>Seleziona una regione</option>'+
		'<option value="abruzzo">Abruzzo</option>'+
		'<option value="basilicata">Basilicata</option>'+
		'<option value="calabria">Calabria</option>'+
		'<option value="campania">Campania</option>'+
		'<option value="emiliaromagna">Emilia Romagna</option>'+
		'<option value="friuliveneziagiulia">Friuli Venezia Giulia</option>'+
		'<option value="lazio">Lazio</option>'+
		'<option value="liguria">Liguria</option>'+
		'<option value="lombardia">Lombardia</option>'+
		'<option value="marche">Marche</option>'+
		'<option value="molise">Molise</option>'+
		'<option value="piemonte">Piemonte</option>'+
		'<option value="puglia">Puglia</option>'+
		'<option value="sardegna">Sardegna</option>'+
		'<option value="sicilia">Sicilia</option>'+
		'<option value="toscana">Toscana</option>'+
		'<option value="trentinoaltoadige">Trentino Alto Adige</option>'+
		'<option value="umbria">Umbria</option>'+
		'<option value="valledaosta">Valle d&#039;Aosta</option>'+
		'<option value="veneto">Veneto</option>'+
		'</select>'
	}else{
		window.location = document.form_sedi.guidelinks.options[document.form_sedi.guidelinks.selectedIndex].value; 
	}
}
function apri_popup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
function x () {
	return;
}
function openWindow(anchor, options) {
	var args = '';
	if (typeof(options) == 'undefined') { var options = new Object(); }
	if (typeof(options.name) == 'undefined') { options.name = 'win' + Math.round(Math.random()*100000); }
	if (typeof(options.height) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
		args += "height=" + options.height + ",";
	}
	if (typeof(options.width) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
		args += "width=" + options.width + ",";
	}
	if (typeof(options.fullscreen) != 'undefined') {
		args += "width=" + screen.availWidth + ",";
		args += "height=" + screen.availHeight + ",";
	}
	if (typeof(options.center) == 'undefined') {
		options.x = 0;
		options.y = 0;
		args += "screenx=" + options.x + ",";
		args += "screeny=" + options.y + ",";
		args += "left=" + options.x + ",";
		args += "top=" + options.y + ",";
	}
	if (typeof(options.center) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
		options.y=Math.floor((screen.availHeight-(options.height || screen.height))/2)-(screen.height-screen.availHeight);
		options.x=Math.floor((screen.availWidth-(options.width || screen.width))/2)-(screen.width-screen.availWidth);
		args += "screenx=" + options.x + ",";
		args += "screeny=" + options.y + ",";
		args += "left=" + options.x + ",";
		args += "top=" + options.y + ",";
	}
	if (typeof(options.scrollbars) != 'undefined') { args += "scrollbars=1,"; }
	if (typeof(options.menubar) != 'undefined') { args += "menubar=1,"; }
	if (typeof(options.locationbar) != 'undefined') { args += "location=1,"; }
	if (typeof(options.resizable) != 'undefined') { args += "resizable=1,"; }
	var win = window.open(anchor, options.name, args);
	return false;
}
