// ------------------------------------------------------------------------------------------------------------------------
// POPUPS
// ------------------------------------------------------------------------------------------------------------------------

function skimap01() {
	window.open("./pop_schlerngebietwinter.htm","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=755,height=558")
}

function skimap02() {
	window.open("http://www.val-gardena.net/skimap/skimap_de.htm","POPUP","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=800,height=550")
}



// ------------------------------------------------------------------------------------------------------------------------
// EXPRESS ANFRAGE SMALL (GENERATE DATE)
// ------------------------------------------------------------------------------------------------------------------------

function SetRequestDate(){
	var calcoloarrivo = new Date()
		calcoloarrivo.setDate(calcoloarrivo.getDate()+ 7)
	var calcolopartenza = new Date()
		calcolopartenza.setDate(calcolopartenza.getDate()+ 14)

	var mesearrivo=new Array(11)
	mesearrivo[0]="01"
	mesearrivo[1]="02"
	mesearrivo[2]="03"
	mesearrivo[3]="04"
	mesearrivo[4]="05"
	mesearrivo[5]="06"
	mesearrivo[6]="07"
	mesearrivo[7]="08"
	mesearrivo[8]="09"
	mesearrivo[9]="10"
	mesearrivo[10]="11"
	mesearrivo[11]="12"

	var giornoarrivo=new Array(11)
	giornoarrivo[0]="00"
	giornoarrivo[1]="01"
	giornoarrivo[2]="02"
	giornoarrivo[3]="03"
	giornoarrivo[4]="04"
	giornoarrivo[5]="05"
	giornoarrivo[6]="06"
	giornoarrivo[7]="07"
	giornoarrivo[8]="08"
	giornoarrivo[9]="09"
	giornoarrivo[10]="10"
	giornoarrivo[11]="11"
	giornoarrivo[12]="12"
	giornoarrivo[13]="13"
	giornoarrivo[14]="14"
	giornoarrivo[15]="15"
	giornoarrivo[16]="16"
	giornoarrivo[17]="17"
	giornoarrivo[18]="18"
	giornoarrivo[19]="19"
	giornoarrivo[20]="20"
	giornoarrivo[21]="21"
	giornoarrivo[22]="22"
	giornoarrivo[23]="23"
	giornoarrivo[24]="24"
	giornoarrivo[25]="25"
	giornoarrivo[26]="26"
	giornoarrivo[27]="27"
	giornoarrivo[28]="28"
	giornoarrivo[29]="29"
	giornoarrivo[30]="30"
	giornoarrivo[31]="31"

	var mesepartenza=new Array(11)
	mesepartenza[0]="01"
	mesepartenza[1]="02"
	mesepartenza[2]="03"
	mesepartenza[3]="04"
	mesepartenza[4]="05"
	mesepartenza[5]="06"
	mesepartenza[6]="07"
	mesepartenza[7]="08"
	mesepartenza[8]="09"
	mesepartenza[9]="10"
	mesepartenza[10]="11"
	mesepartenza[11]="12"

	var giornopartenza=new Array(11)
	giornopartenza[0]="00"
	giornopartenza[1]="01"
	giornopartenza[2]="02"
	giornopartenza[3]="03"
	giornopartenza[4]="04"
	giornopartenza[5]="05"
	giornopartenza[6]="06"
	giornopartenza[7]="07"
	giornopartenza[8]="08"
	giornopartenza[9]="09"
	giornopartenza[10]="10"
	giornopartenza[11]="11"
	giornopartenza[12]="12"
	giornopartenza[13]="13"
	giornopartenza[14]="14"
	giornopartenza[15]="15"
	giornopartenza[16]="16"
	giornopartenza[17]="17"
	giornopartenza[18]="18"
	giornopartenza[19]="19"
	giornopartenza[20]="20"
	giornopartenza[21]="21"
	giornopartenza[22]="22"
	giornopartenza[23]="23"
	giornopartenza[24]="24"
	giornopartenza[25]="25"
	giornopartenza[26]="26"
	giornopartenza[27]="27"
	giornopartenza[28]="28"
	giornopartenza[29]="29"
	giornopartenza[30]="30"
	giornopartenza[31]="31"

	var dataarrivo = giornoarrivo[calcoloarrivo.getDate()] + "/" + mesearrivo[calcoloarrivo.getMonth()] + "/" + calcoloarrivo.getYear()
	var datapartenza = giornopartenza[calcolopartenza.getDate()] + "/" + mesepartenza[calcolopartenza.getMonth()] + "/" + calcolopartenza.getYear()
	document.FrmRightRequest.TxtArrivo.value = dataarrivo
	document.FrmRightRequest.TxtPartenza.value = datapartenza
}


// ------------------------------------------------------------------------------------------------------------------------
// EXPRESS ANFRAGE (FORM VALIDATION)
// ------------------------------------------------------------------------------------------------------------------------


			function Children()
			{
			var selection = document.Form1.Bambini.value
			
			if (selection == "0")
			{
				document.getElementById('OptChildren').firstChild.nodeValue = ":"
			}
			else
			{
				document.getElementById('OptChildren').firstChild.nodeValue = " (Inserire qui l'età dei bambini):"
			}
			}


	function ValidLength(item, len) 
		{	return(item.length >=len);
		}

	function ValidEmail(item)
		{	if(!ValidLength(item,5)) return false;
			if(item.indexOf('@',0) == -1) return false;
			if(item.indexOf('.',0) == -1) return false;
			if(item.indexOf(',',0) > 0) return false;
			return true;
		}

    function sendit()
    {
		if ((document.Form1.NrCamereHotel.value == "0") &&
            (document.Form1.NrCamereGarni.value  == "0") &&
			(document.Form1.NrAppartamenti.value  == "0"))
        {
            alert("Selezionare almeno un tipo di alloggio.");
			return false;
        }
        else if ((document.Form1["5Stelle"].checked == 0) &&
            (document.Form1["4Stelle"].checked  == 0) &&
			(document.Form1["3Stelle"].checked  == 0) &&
			(document.Form1["2Stelle"].checked  == 0) &&
            (document.Form1["1Stelle"].checked  == 0))
        {
            alert("Selezionare almeno una categoria.");
			return false;
        }
		else if ((document.Form1.TxtOrt1.checked == 0) &&
            (document.Form1.TxtOrt2.checked  == 0) &&
			(document.Form1.TxtOrt3.checked  == 0) &&
			(document.Form1.TxtOrt4.checked  == 0))  
        {
            alert("Selezionare almeno una località.");
			return false;
        }
        else 
			Control2()
    }

	function Control2()
		{	errfound = false;

var CheckBambini = document.Form1.Bambini.value

			if (CheckBambini == "1") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "2") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "3") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "4") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "5") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino5.value,1)) error(document.Form1.Bambino5,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "6") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino5.value,1)) error(document.Form1.Bambino5,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino6.value,1)) error(document.Form1.Bambino6,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "7") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino5.value,1)) error(document.Form1.Bambino5,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino6.value,1)) error(document.Form1.Bambino6,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino7.value,1)) error(document.Form1.Bambino7,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "8") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino5.value,1)) error(document.Form1.Bambino5,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino6.value,1)) error(document.Form1.Bambino6,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino7.value,1)) error(document.Form1.Bambino7,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino8.value,1)) error(document.Form1.Bambino8,"Per proseguire è necessario inserire l'età dei bambini.")}
			else if (CheckBambini == "9") {
				if (!ValidLength(document.Form1.Bambino1.value,1)) error(document.Form1.Bambino1,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino2.value,1)) error(document.Form1.Bambino2,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino3.value,1)) error(document.Form1.Bambino3,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino4.value,1)) error(document.Form1.Bambino4,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino5.value,1)) error(document.Form1.Bambino5,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino6.value,1)) error(document.Form1.Bambino6,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino7.value,1)) error(document.Form1.Bambino7,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino8.value,1)) error(document.Form1.Bambino8,"Per proseguire è necessario inserire l'età dei bambini.")
				if (!ValidLength(document.Form1.Bambino9.value,1)) error(document.Form1.Bambino9,"Per proseguire è necessario inserire l'età dei bambini.")}

			if (!ValidLength(document.Form1.Nome.value,3))
				error(document.Form1.Nome,"Inserire il proprio nome.");
			if (!ValidLength(document.Form1.Cognome.value,3))
				error(document.Form1.Cognome,"Inserire il proprio cognome.");
			if (!ValidLength(document.Form1.Indirizzo.value,3))
				error(document.Form1.Indirizzo,"Inserire il proprio indirizzo di residenza.");
			if (!ValidLength(document.Form1.CAP.value,3))
				error(document.Form1.CAP,"Inserire il proprio CAP di residenza.");
			if (!ValidLength(document.Form1.Citta.value,3))
				error(document.Form1.Citta,"Inserire il nome della città di residenza.");
			if (!ValidEmail(document.Form1.Email.value))
				error(document.Form1.Email, "Inserire il proprio indirizzo e-mail.");
			if (document.Form1.TxtPrivacy.checked == 0)
				error(document.Form1.TxtPrivacy,"Per proseguire è necessario acconsentire al trattamento dei dati personali\ncome stabilito dalla legge 675/96.");
			if (errfound == false)
			{
			document.Form1.TxtCheck03.value = 'validato'
			document.Form1.BtnSend.disabled = true;
			document.Form1.BtnSend.value = 'Attendere prego...\nLa richiesta sta per essere inviata.';
			document.Form1.submit();
			}
		}

		function error(elem, text)
		{	if (errfound) return;
			window.alert(text)
			elem.select();
			elem.focus;
			errfound = true;
		}



// ------------------------------------------------------------------------------------------------------------------------
// HOTEL SUCHE (FORM VALIDATION)
// ------------------------------------------------------------------------------------------------------------------------

function ValidLength2(item, len) 
	{	return(item.length >=len);
	}

function validateForm1()
{
	formObj = document.FrmSearch;
	if ((formObj.SrcTipo1.checked == 0) &&
		(formObj.SrcTipo2.checked  == 0) &&
		(formObj.SrcTipo3.checked  == 0) &&
		(formObj.SrcTipo4.checked  == 0) &&
		(formObj.SrcTipo5.checked  == 0) &&
		(formObj.SrcTipo7.checked  == 0))
	{
		alert("1) Selezionare almeno un tipo di alloggio.");
		return false;
	}
	else if ((formObj.Src1s.checked == 0) &&
		(formObj.Src2s.checked  == 0) &&
		(formObj.Src3s.checked  == 0) &&
		(formObj.Src4s.checked  == 0) &&
		(formObj.Src5s.checked  == 0))
	{
		alert("2) Selezionare almeno una categoria.");
		return false;
	}
	else if ((formObj.SrcLuogo01.checked == 0) &&
		(formObj.SrcLuogo02.checked  == 0) &&
		(formObj.SrcLuogo03.checked  == 0) &&
		(formObj.SrcLuogo04.checked  == 0))  
	{
		alert("3) Selezionare almeno una località.");
		return false;
	}
	else 
		document.FrmSearch.submit();
}

function Control3()
{	errfound = false;
	if (!ValidLength2(document.FrmSKey.TxtKey.value,3))
		error(document.FrmSKey.TxtKey,"Inserire almeno 3 lettere.");
	if (errfound == false)
		document.FrmSKey.submit();
}

function error(elem, text)
{	if (errfound) return;
	window.alert(text)
	elem.select();
	elem.focus;
	errfound = true;
}


function ImgSwitch01in() {document.Img01.src = "images/icn_wellness_a.jpg"}
function ImgSwitch01out() {document.Img01.src = "images/icn_wellness.jpg"}

function ImgSwitch02in() {document.Img02.src = "images/icn_lastminute_a.jpg"}
function ImgSwitch02out() {document.Img02.src = "images/icn_lastminute.jpg"}

function ImgSwitch03in() {document.Img03.src = "images/icn_hotel_a.jpg"}
function ImgSwitch03out() {document.Img03.src = "images/icn_hotel.jpg"}

function ImgSwitch04in() {document.Img04.src = "images/icn_pension_a.jpg"}
function ImgSwitch04out() {document.Img04.src = "images/icn_pension.jpg"}

function ImgSwitch05in() {document.Img05.src = "images/icn_garni_a.jpg"}
function ImgSwitch05out() {document.Img05.src = "images/icn_garni.jpg"}

function ImgSwitch06in() {document.Img06.src = "images/icn_residence_a.jpg"}
function ImgSwitch06out() {document.Img06.src = "images/icn_residence.jpg"}

function ImgSwitch07in() {document.Img07.src = "images/icn_apartment_a.jpg"}
function ImgSwitch07out() {document.Img07.src = "images/icn_apartment.jpg"}

function ImgSwitch08in() {document.Img08.src = "images/icn_bauernhof_a.jpg"}
function ImgSwitch08out() {document.Img08.src = "images/icn_bauernhof.jpg"}

function ImgSwitch09in() {document.Img09.src = "images/icn_huette_a.jpg"}
function ImgSwitch09out() {document.Img09.src = "images/icn_huette.jpg"}










function Pop(name, w, h){  

    var s1 = ("<HTML><TITLE>Kastelruth.org</TITLE>" + 
    "<BODY onBlur='self.close()' BGCOLOR='#D0D0D0' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>" + 
    "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle'><IMG SRC='" + name + "' border='1'>" + "</tr></table>");   

    w = w + 20;
    h = h + 20;
    
    var param = ("height=" + h + ",width=" + w + ",scrollbars=no,resizable=no,left=50,top=50");

    popup = window.open("","popDialog",param)

    popup.document.write(s1)
    popup.document.close()
}


function PopItNew(theURL, w, h){
        ver = parseInt(navigator.appVersion.substring(0,1));       newWin=window.open(theURL,"IS_pop","width="+w+",height="+h+",menubar=no,toolbar=no,status=yes,resizable=no,scrollbars=no,");
	if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
          setTimeout("if (newWin) newWin.focus();",1000);
    }
}



// ANFRAGE KINDER...

function ResetBambini()
{
		document.getElementById('TabBambino1').style.display = 'none'
		document.getElementById('TabBambino2').style.display = 'none'
		document.getElementById('TabBambino3').style.display = 'none'
		document.getElementById('TabBambino4').style.display = 'none'
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
}

function FBambini()
{
	var BambiniSelection = document.Form1.Bambini.value
	
	if (BambiniSelection == "1")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = 'none'
		document.getElementById('TabBambino3').style.display = 'none'
		document.getElementById('TabBambino4').style.display = 'none'
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
		
	}
	else if (BambiniSelection == "2")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = 'none'
		document.getElementById('TabBambino4').style.display = 'none'
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "3")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = 'none'
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "4")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "5")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = ''
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "6")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = ''
		document.getElementById('TabBambino6').style.display = ''
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "7")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = ''
		document.getElementById('TabBambino6').style.display = ''
		document.getElementById('TabBambino7').style.display = ''
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "8")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = ''
		document.getElementById('TabBambino6').style.display = ''
		document.getElementById('TabBambino7').style.display = ''
		document.getElementById('TabBambino8').style.display = ''
		document.getElementById('TabBambino9').style.display = 'none'
	}
	else if (BambiniSelection == "9")
	{
		document.getElementById('TabBambino1').style.display = ''
		document.getElementById('TabBambino2').style.display = ''
		document.getElementById('TabBambino3').style.display = ''
		document.getElementById('TabBambino4').style.display = ''
		document.getElementById('TabBambino5').style.display = ''
		document.getElementById('TabBambino6').style.display = ''
		document.getElementById('TabBambino7').style.display = ''
		document.getElementById('TabBambino8').style.display = ''
		document.getElementById('TabBambino9').style.display = ''
	}
	else
	{
		document.getElementById('TabBambino1').style.display = 'none'
		document.getElementById('TabBambino2').style.display = 'none'
		document.getElementById('TabBambino3').style.display = 'none'
		document.getElementById('TabBambino4').style.display = 'none'
		document.getElementById('TabBambino5').style.display = 'none'
		document.getElementById('TabBambino6').style.display = 'none'
		document.getElementById('TabBambino7').style.display = 'none'
		document.getElementById('TabBambino8').style.display = 'none'
		document.getElementById('TabBambino9').style.display = 'none'
	}
}
