	n = 3; // number of hidden layers
function show(a){
	n=3;
	for(i=1;i<=n;i++){
		document.getElementById('menu'+i).style.display = 'none';
	}
		document.getElementById('menu'+a).style.display = 'block';
	}
function startmenu()
	{
		document.getElementById('menu1').style.display = "none";
		document.getElementById('menu2').style.display = "none";
		document.getElementById('menu3').style.display = "none";
	}
function menufunc(menuId)
	{
		if(document.getElementById(menuId).style.display == "none")
		{
			startmenu();
			document.getElementById(menuId).style.display = "block";
		}
		else
		{
			startmenu();
		}
	}
function Validatore_Prenotazione(theForm){
	if (theForm.cognome.value =="")
					{
					alert("Inserire il proprio cognome")
					theForm.cognome.focus();
					return (false);
					}
	if (theForm.nome.value =="")
					{
					alert("Inserire il proprio nome")
					theForm.nome.focus();
					return (false);
					}
	if (theForm.citta.value =="")
					{
					alert("Inserire la citta")
					theForm.citta.focus();
					return (false);
					}
	if (theForm.provincia.value =="")
					{
					alert("Selezionare la provincia")
					theForm.provincia.focus();
					return (false);
					}
	if (theForm.email.value =="")
					{
					alert("Inserire il proprio indirizzo e-mail")
					theForm.email.focus();
					return (false);
					}
	if (theForm.ga.value =="")
					{
					alert("Inserire il giorno di arrivo -")
					theForm.giar.focus();
					return (false);
					}
	if (theForm.ma.value =="")
					{
					alert("Inserire il mese di arrivo")
					theForm.ma.focus();
					return (false);
					}
	if (theForm.aa.value =="")
					{
					alert("Inserire anno di arrivo")
					theForm.aa.focus();
					return (false);
					}
	if (theForm.gp.value =="")
					{
					alert("Inserire il giorno di partenza")
					theForm.gp.focus();
					return (false);
					}
	if (theForm.mp.value =="")
					{
					alert("Inserire il mese di partenza")
					theForm.mp.focus();
					return (false);
					}
	if (theForm.ap.value =="")
					{
					alert("Inserire anno di partenza ")
					theForm.ap.focus();
					return (false);
					}
	if (theForm.or.value =="")
					{
					alert("Selezionare il trattamento")
					theForm.or.focus();
					return (false);
					}
	if (theForm.adulti.value =="")
					{
					alert("Selezionare il numero di adulti")
					theForm.adulti.focus();
					return (false);
					}
	if (theForm.aggbambini.value =="")
					{
					alert("Selezionare il numero di letto aggiunto per bambini")
					theForm.aggbambini.focus();
					return (false);
					}
	if (theForm.aggadulti.value =="")
					{
					alert("Selezionare il numero di letto aggiunto per adulti")
					theForm.aggadulti.focus();
					return (false);
					}
	if (theForm.neonati.value =="")
					{
					alert("Selezionare il numero di neonati")
					theForm.neonati.focus();
					return (false);
					}
	if (!theForm.accetto.checked)
					{
					alert("Spiacenti: in caso di mancata autorizzazione, non possiamo ricevere il messaggio (legge 675/96); spuntare l'opzione \"Accetto\"")
					theForm.accetto.focus();
					return (false);
					}
	return true;
	}
function Validatore_Form(theForm){
	msg1 = ""; msg2 = "";
	if (theForm.email.value =="")
					{
					msg2 = "  - il proprio indirizzo email"; //alert("Inserire il proprio indirizzo email")
					theForm.email.focus();
					}
	if (theForm.nome.value =="")
					{ 
					msg1 = "  - il proprio nome \n" ; //alert("Inserire il proprio nome")
					theForm.nome.focus();
					}
	if (msg1 != "" || msg2 != "")
		{
		alert("Inserire:\n"  + msg1 + msg2);
		return (false);
		}
	if ((theForm.checkbox.checked) == false)
					{
					alert("Spiacenti: occorre il Suo consenso, per poterLa iscrivere nella nostra Mailing List (legge 675/96).")
					theForm.checkbox.focus();
					return (false);
					}
	return true;
	}


