function SetTipoStruttura(SelObj){
	var Frm_Avanzata = document.getElementById('Frm_Avanzata');
	//var Frm_Economica = document.getElementById('Frm_Economica');
	var selectedIndex = SelObj.selectedIndex;
	Frm_Avanzata.IDTipoStruttura.selectedIndex = selectedIndex;
	//Frm_Economica.IDTipoStruttura.selectedIndex = selectedIndex;
}

function SetUbicazione(SelObj){
	var Frm_Avanzata = document.getElementById('Frm_Avanzata');
	//var Frm_Economica = document.getElementById('Frm_Economica');
	var selectedIndex = SelObj.selectedIndex;
	Frm_Avanzata.StrFiltriUbicazioni.selectedIndex = selectedIndex;
	//Frm_Economica.StrFiltriUbicazioni.selectedIndex = selectedIndex;
}


function Submit_Avanzata(){
	if(document.Frm_Avanzata.NumeroCamere.value==0){
		alert('Numero camere errato');
		return false;
	}
	var datada, dataa;
	
}
function Submit_Economica(){
	
}



function switcher_ncamere(id) { 

		// DOM3 = IE5, NS6
		// sostituisco display='block' con display='' perevitare bachi in firefox
		// la stringa vuota indurrą il browser a ripristinare il valore default
		if (document.getElementById)
		switch (id){
			case 0:
				document.getElementById('0').style.display = '';
				document.getElementById('1').style.display = 'none';
				document.getElementById('2').style.display = 'none';
				document.getElementById('3').style.display = 'none';
			break;
			case 1:
				document.getElementById('0').style.display = '';
				document.getElementById('1').style.display = '';
				document.getElementById('2').style.display = 'none';
				document.getElementById('3').style.display = 'none';
			break;
			case 2:
				document.getElementById('0').style.display = '';
				document.getElementById('1').style.display = '';
				document.getElementById('2').style.display = '';
				document.getElementById('3').style.display = 'none';
			break;
			case 3:
				document.getElementById('0').style.display = '';
				document.getElementById('1').style.display = '';
				document.getElementById('2').style.display = '';
				document.getElementById('3').style.display = '';
			break;
		} 
	else 
		if (document.layers)
			switch (id){
				case 0:
					document.layers['0'].display = 'block';
					document.layers['1'].display = 'none';
					document.layers['2'].display = 'none';
					document.layers['3'].display = 'none';
				break;
				case 1:
					document.layers['0'].display = 'block';
					document.layers['1'].display = 'block';
					document.layers['2'].display = 'none';
					document.layers['3'].display = 'none';
				break;
				case 2:
					document.layers['0'].display = 'block';
					document.layers['1'].display = 'block';
					document.layers['2'].display = 'block';
					document.layers['3'].display = 'none';
				break;
				case 3:
					document.layers['0'].display = 'block';
					document.layers['1'].display = 'block';
					document.layers['2'].display = 'block';
					document.layers['3'].display = 'block';
				break;
			} 
		else
			switch (id){
				case 0:
					document.all['0'].display = 'block';
					document.all['1'].display = 'none';
					document.all['2'].display = 'none';
					document.all['3'].display = 'none';
				break;
				case 1:
					document.all['0'].display = 'block';
					document.all['1'].display = 'block';
					document.all['2'].display = 'none';
					document.all['3'].display = 'none';
				break;
				case 2:
					document.all['0'].display = 'block';
					document.all['1'].display = 'block';
					document.all['2'].display = 'block';
					document.all['3'].display = 'none';
				break;
				case 3:
					document.all['0'].display = 'block';
					document.all['1'].display = 'block';
					document.all['2'].display = 'block';
					document.all['3'].display = 'block';
				break;
			} 
}

function switchTipoRicerca(tipo) {
	switch (tipo) {
		case 'standard':
			document.getElementById('standard').style.display='';
			document.getElementById('economica').style.display='none';
			break;
		case 'economica':
			document.getElementById('standard').style.display='none';
			document.getElementById('economica').style.display='';
			break;
	}
}

function setorder(Obj){
	document.getElementById('Frm_Avanzata').All_OrdinamentoPOI.value = Obj.value;
	
	if (document.getElementById('standard').style.display!='none') {
		document.getElementById('Frm_Avanzata').Azione.value = 'avanzata';
		document.getElementById('Frm_Avanzata').submit();
		}
	else	{
		document.getElementById('Frm_Avanzata').Azione.value = 'economica';
		document.getElementById('Frm_Avanzata').submit();
	}
}