	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;
	}

function enmsg (){alert("Sorry, Pages under construction");}
function frmsg (){alert("Désolé, Pages en construction");}
function demsg (){alert("Leider, Seite im Aufbau");}

// Original:  Beccaria Danilo
// Web Site:  http://www.ininternet.org

function WebDate() {
	var now = new Date();
	var year= now.getYear();if (year < 1000) year += 1900;
	nameDay = new Array('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato');
	nameMth = new Array('Gennaio','Febbraio','Marzo','Aprile','Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre','Dicembre');
	document.write('<a id="t0"style="color:red">'+nameDay[now.getDay()]+ ' ' + now.getDate() + " " + nameMth[now.getMonth()] + " " + year+'</a>');
}
function blink(id){ //bisogna passare alla funzione l'id del testo
if(document.all){
link = document.all.elementID[id].style;} //per internet Explorer
else{var link = document.getElementById(id).style; //per altri browser come Firefox o Netscape
}
if(link.visibility == "hidden"){link.visibility = "visible";}
else{ link.visibility = "hidden";
}
}
setInterval("blink('t0');blink('t1');blink('t2');blink('t3');blink('t4');blink('t5');blink('t6');blink('t7');",900); //serve per ripetere la funzione ogni 1 secondo e potete farlo con molti testi


