function Form (form){
if (form.name.value =="") {
	alert("You did not enter your name");
	form.name.focus();
	return false;
}	
if (form.lastname.value =="") {
	alert("you did not enter your last name");
	form.lastname.focus();
	return false;
}
if (form.expirationdate.value.length < 4) {
	alert("Credit card expiration date appears incorrect");
	form.deposit.focus();
	return false;
} 
if (form.posta.value =="") {
	alert("You did not enter your email address");
	form.posta.focus();
	return false;
}	
if (form.posta.value.length > 0 && form.posta.value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1){
		alert("The email address you entered is not correct");
		form.posta.focus();
		return false;
}
if (form.street.value =="") {
	alert("You did not enter your Street Name in the address");
	form.street.focus();
	return false;
}
if (form.city.value =="") {
	alert("You did not enter your City Name in the address");
	form.city.focus();
	return false;
}
if (form.state.value =="0") {
	alert("You did not select a Country");
	form.state.focus();
	return false;
}
if (form.zipcode.value =="") {
	alert("You did not enter your zip code in the address");
	form.zipcode.focus();
	return false;
}
if (form.phone.value =="") {
	alert("You did not enter your phone number");
	form.phone.focus();
	return false;
}
if (form.ccnumber.value =="") {
	alert("You did not enter your credit card number");
	form.ccnumber.focus();
	return false;
}
if (form.ccname.value =="") {
	alert("You did not enter then name of the owner of the credit card");
	form.ccname.focus();
	return false;
}
if (form.expirationdate.value =="") {
	alert("You did not enter the expiration date of the credit card");
	form.expirationdate.focus();
	return false;
}
if (form.arrival_day.value =="---") {
	alert("You did not enter the day of arrival");
	form.arrival_day.focus();
	return false;
}
if (form.arrival_month.value =="---") {
	alert("You did not enter the month of arrival");
	form.arrival_month.focus();
	return false;
}
if (form.arrival_year.value =="---") {
	alert("You did not enter the year of arrival");
	form.arrival_year.focus();
	return false;
}
if (form.departure_day.value =="---") {
	alert("You did not enter the day of departure");
	form.departure_day.focus();
	return false;
}
if (form.departure_month.value =="---") {
	alert("You did not enter the month of departure");
	form.departure_month.focus();
	return false;
}
if (form.departure_year.value =="---") {
	alert("You did not enter the year of departure");
	form.departure_year.focus();
	return false;
}
if (form.peoplenumb.value =="") {
	alert("You did not enter the number of people");
	form.peoplenumb.focus();
	return false;
}
if (form.nightsnumb.value =="") {
	alert("You did not enter the number of nights");
	form.peoplenumb.focus();
	return false;
}
if (form.accommodation.value =="0") {
	alert("You did not enter the room type");
	form.accommodation.focus();
	return false;
}
if (form.totalcost.value =="") {
	alert("You did not enter the total cost");
	form.totalcost.focus();
	return false;
}
if (form.deposit.value =="") {
	alert("You did not enter the deposit amount");
	form.deposit.focus();
	return false;
}
if (form.accept_terms.checked !=true) {
	alert("You did not check the box to accept the terms and conditions");
	form.accept_terms.focus();
	return false;
}
if (form.privacy.checked !=true) {
	alert("You'll need to allow us to process your personal data. Your permission is required by Italian law, within the scope and purposes of the service provided as indicated at **.");
	form.privacy.focus();
	return false;
}	
	return true;
}