function checkBookingForm() {
	
	return 1;
	
	msg = new Array();
	
	prebooking = 0;
	if(typeof(document.getElementById('PreBooking')) == 'object') {
		check = document.getElementById('PreBooking');
		if(check != null) {
			if(check.value > 0) prebooking = 1;
		}
	}
	
	//PeriodBegin
	if(typeof(document.getElementById('PeriodBegin')) == 'object') {
		check = document.getElementById('PeriodBegin');
		if(typeof(check.options) != 'undefined') {
			if(check.options.length > 1 && !check.selectedIndex) {
				msg.push('La preghiamo di inserire il giorno di partenza desiderato.');
			}
		}
	}
	
	//ChildrenDetails
	if(typeof(document.getElementById('Children')) == 'object') {
		check = document.getElementById('Children').value;
		if(check > 0) {
			if(typeof(document.getElementById('ChildrenDetails')) == 'object') {
				check = document.getElementById('ChildrenDetails').value;
				if(trim(check) == '') {
					msg.push('La preghiamo di inserire l´etá dei bambini.');
				}
			}
		}
	}

	//PetsDetails
	if(typeof(document.getElementById('Pets')) == 'object') {
		check = document.getElementById('Pets').value;
		if(check > 0) {
			if(typeof(document.getElementById('PetsDetails')) == 'object') {
				check = document.getElementById('PetsDetails').value;
				if(trim(check) == '') {
					msg.push('La preghiamo di inserire la taglia e la razza dell´animale domestico.');
				}
			}
		}
	}

	//FirstName
	check = null;
	if(typeof(document.getElementById('FirstName')) == 'object') {
		check = document.getElementById('FirstName').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il Suo nome.');
	}
	
	//Name
	check = null;
	if(typeof(document.getElementById('Name')) == 'object') {
		check = document.getElementById('Name').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il Suo cognome.');
	}
	
	//Street
	check = null;
	if(typeof(document.getElementById('Street')) == 'object') {
		check = document.getElementById('Street').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il nome della Sua via.');
	}
	
	//StreetNumber
	check = null;
	if(typeof(document.getElementById('StreetNumber')) == 'object') {
		check = document.getElementById('StreetNumber').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il numero civico.');
	}
	
	//Zipcode
	check = null;
	if(typeof(document.getElementById('Zipcode')) == 'object') {
		check = document.getElementById('Zipcode').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il Suo CAP.');
	}
	
	//City
	check = null;
	if(typeof(document.getElementById('City')) == 'object') {
		check = document.getElementById('City').value;
	}
	if(check == null || trim(check) == '') {
		msg.push('La preghiamo di inserire il nome della Sua cittá.');
	}
	
	//Email
	check = null;
	if(typeof(document.getElementById('Email')) == 'object') {
		check = document.getElementById('Email').value;
	}
	if(check == null || trim(check) == '' || !checkEmail(check)) {
		msg.push('La preghiamo di inserire il Suo indirizzo e-mail.');
	}
	
	//Phone / Workphone
	phone = 0;
	check = null;
	if(typeof(document.getElementById('Phone')) == 'object') {
		check = document.getElementById('Phone').value;
	}
	if(check == null || trim(check) == '') {
		phone++;
	}
	
	check = null;
	if(typeof(document.getElementById('Workphone')) == 'object') {
		check = document.getElementById('Workphone').value;
	}
	if(check == null || trim(check) == '') {
		phone++;
	}
	if(phone == 2) {
		msg.push('La preghiamo di inserire almeno un recapito telefonico.');
	}
	
	//Payment
	if(typeof(document.getElementById('Payment')) == 'object') {
		check = document.getElementById('Payment');
		if(check.options.length > 1 && !check.selectedIndex) {
			msg.push('La preghiamo di inserire il tipo di pagamento desiderato.');
		}
		
		if(check.value == 'creditcard') {

			//CreditCardType
			check = null;
			if(typeof(document.getElementById('CreditCardType')) == 'object') {
				check = document.getElementById('CreditCardType').value;
			}
			if(check == null || !check) {
				msg.push('La preghiamo di inserire il circuito della Sua carta di credito.');
			}
		
			//CreditCardFirstname
			check = null;
			if(typeof(document.getElementById('CreditCardFirstname')) == 'object') {
				check = document.getElementById('CreditCardFirstname').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il nome del titolare della carta di credito.');
			}
			
			//CreditCardLastname
			check = null;
			if(typeof(document.getElementById('CreditCardLastname')) == 'object') {
				check = document.getElementById('CreditCardLastname').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il cognome del titolare della carta di credito.');
			}
			
			//CreditCardNumber
			check = null;
			if(typeof(document.getElementById('CreditCardNumber')) == 'object') {
				check = document.getElementById('CreditCardNumber').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il numero di carta di credito.');
			}
			
			//CreditCardCvc
			check = null;
			if(typeof(document.getElementById('CreditCardCvc')) == 'object') {
				check = document.getElementById('CreditCardCvc').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il numero di sicurezza della carta di credito.');
			}
			
			//CreditCardExpiryMonth
			expiry = 0;
			check = null;
			if(typeof(document.getElementById('CreditCardExpiryMonth')) == 'object') {
				check = document.getElementById('CreditCardExpiryMonth');
			}
			if(check == null || !check.selectedIndex) {
				msg.push('La preghiamo di inserire la scadenza della carta di credito.');
				expiry++;
			}
			
			//CreditCardExpiryYear
			check = null;
			if(typeof(document.getElementById('CreditCardExpiryYear')) == 'object') {
				check = document.getElementById('CreditCardExpiryYear');
			}
			if(check == null || !check.selectedIndex) {
				if(expiry < 1) msg.push('La preghiamo di inserire la scadenza della carta di credito.');
			}
		} else if(check.value == 'bankcollection') {

			//AccountOwner
			check = null;
			if(typeof(document.getElementById('AccountOwner')) == 'object') {
				check = document.getElementById('AccountOwner').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire nome e cognome del titolare del conto corrente.');
			}
			
			//AccountNumber
			check = null;
			if(typeof(document.getElementById('AccountNumber')) == 'object') {
				check = document.getElementById('AccountNumber').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il numero del conto corrente.');
			}
			
			//BLZ
			check = null;
			if(typeof(document.getElementById('BLZ')) == 'object') {
				check = document.getElementById('BLZ').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il codice della Sua banca.');
			}
			
			//Bank
			check = null;
			if(typeof(document.getElementById('Bank')) == 'object') {
				check = document.getElementById('Bank').value;
			}
			if(check == null || trim(check) == '') {
				msg.push('La preghiamo di inserire il nome dell´istituto di credito.');
			}

		}
	}
	
	//RentalAgreements
	if (document.getElementById('RentalAgreements').checked == false) {
		msg.push('La preghiamo di confermare i nostri termini e condizioni generali.');
	}
	
	if(msg.length > 0) {
		txt = '';
		for(i=0;i<msg.length;i++) {
			txt += msg[i]+"\n";
		}
		alert(txt)
		unbusy('busy');
		window.scrollTo(0, 2000);
		return false;
	} else {
		return 1;
	}
	
}
function getMonthName(month) {
	
	switch(month) {
	case 0:
		return 'Gennaio';
		break;
	case 1:
		return 'Febbraio';
		break;
	case 2:
		return 'Marzo';
		break;
	case 3:
		return 'Aprile';
		break;
	case 4:
		return 'Maggio';
		break;
	case 5:
		return 'Giugno';
		break;
	case 6:
		return 'Luglio';
		break;
	case 7:
		return 'Agosto';
		break;
	case 8:
		return 'Settembre';
		break;
	case 9:
		return 'Ottobre';
		break;
	case 10:
		return 'Novembre';
		break;
	case 11:
		return 'Dicembre';
		break;
	}
}

function getDayName(day) {

	switch(day) {
	case 0:
		return 'Do.';
		break;
	case 1:
		return 'Lu.';
		break;
	case 2:
		return 'Ma.';
		break;
	case 3:
		return 'Me.';
		break;
	case 4:
		return 'Gi.';
		break;
	case 5:
		return 'Ve.';
		break;
	case 6:
		return 'Sa.';
		break;
	}
}

error1 = 'La preghiamo di verificare il Suo indirizzo email.';
error2 = 'La preghiamo di verificare i Suoi dati.';