function check_occupanti_camere(var1,var2)
	{
	var min = document.bol_motorebooking[var1].value
	if (document.bol_motorebooking[var2].value > document.bol_motorebooking[var1].value)
		{
		alert("Room number minor of guests' number")
		document.bol_motorebooking[var2].value = min
		}
	}

function check_camere_occupanti(var1,var2)
	{
	var min = document.bol_motorebooking[var1].value
	if (document.bol_motorebooking[var2].value < document.bol_motorebooking[var1].value)
		{
		alert("Guests' number minor of room number")
		document.bol_motorebooking[var2].value = min
		}
	}

function check_bambini_adulti()
	{
	var min = document.bol_motorebooking.n_occ_adulti.value;
	if (document.bol_motorebooking.n_occ_adulti.value < document.bol_motorebooking.n_occ_bambini.value)
		{
		alert("Adults number less than young children one");
		document.bol_motorebooking.n_occ_bambini.value = min;
		}
	}

function verify_motorepiccolo() 
	{
	var themessage = "Please fill the following fields: ";
	if (document.bol_motorebooking.start_date.value=="") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motorebooking.start_date.value=="gg/aa/yyyy") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motorebooking.end_date.value=="")
		{
		themessage = themessage + " - Check out";
		}
	if (document.bol_motorebooking.end_date.value=="gg/aa/yyyy")
		{
		themessage = themessage + " - Check out";
		}

	if (themessage == "Please fill the following fields: ") 
		{
		document.bol_motorebooking.submit();
		}
	else 
		{
		alert(themessage);
		return false;
	   }
	}
	
function verify_motorebooking() 
	{
	var themessage = "Please fill the following fields: ";
	if (document.bol_motorebooking.start_date.value=="") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motorebooking.start_date.value=="gg/aa/yyyy") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motorebooking.end_date.value=="")
		{
		themessage = themessage + " - Check out";
		}
	if (document.bol_motorebooking.end_date.value=="gg/aa/yyyy")
		{
		themessage = themessage + " - Check out";
		}

	if (themessage == "Please fill the following fields: ") 
		{
		document.bol_motorebooking.submit();
		}
	else 
		{
		alert(themessage);
		return false;
	   }
	}
	
function verify_motoreftp() 
	{
	var themessage = "Please fill the following fields: ";
	if (document.bol_motoreftp.start_date.value=="") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motoreftp.start_date.value=="gg/aa/yyyy") 
		{
		themessage = themessage + " - Check in";
		}
	if (document.bol_motoreftp.end_date.value=="")
		{
		themessage = themessage + " - Check out";
		}
	if (document.bol_motoreftp.end_date.value=="gg/aa/yyyy")
		{
		themessage = themessage + " - Check out";
		}

	if (themessage == "Please fill the following fields: ") 
		{
		document.bol_motoreftp.submit();
		}
	else 
		{
		alert(themessage);
		return false;
	   }
	}
	
function verify_motorefly_AR() 
	{
	var themessage = "Please fill the following fields: ";
	if (document.bol_motorebooking.da_aeroporto_num.value=="") 
		{
		themessage = themessage + " - Departing airport";
		}
	if (document.bol_motorebooking.a_aeroporto.value=="") 
		{
		themessage = themessage + " - Destination airport";
		}
	if (document.bol_motorebooking.start_date.value=="") 
		{
		themessage = themessage + " - Depart data";
		}
	if (document.bol_motorebooking.start_date.value=="gg/aa/yyyy") 
		{
		themessage = themessage + " - Depart data";
		}
	if (document.bol_motorebooking.end_date.value=="")
		{
		themessage = themessage + " - Return data";
		}
	if (document.bol_motorebooking.end_date.value=="gg/aa/yyyy")
		{
		themessage = themessage + " - Return data";
		}

	if (themessage == "Please fill the following fields: ") 
		{
		document.bol_motorebooking.submit();
		}
	else 
		{
		alert(themessage);
		return false;
	   }
	}

function verify_motorefly_A() 
	{
	var themessage = "Please fill the following fields: ";
	if (document.bol_motorebooking.da_aeroporto_num.value=="") 
		{
		themessage = themessage + " - Departing airport";
		}
	if (document.bol_motorebooking.a_aeroporto.value=="") 
		{
		themessage = themessage + " - Destination airport";
		}
	if (document.bol_motorebooking.start_date.value=="") 
		{
		themessage = themessage + " - Depart data";
		}
	if (document.bol_motorebooking.start_date.value=="gg/aa/yyyy") 
		{
		themessage = themessage + " - Depart data";
		}
	if (themessage == "Please fill the following fields: ") 
		{
		document.bol_motorebooking.submit();
		}
	else 
		{
		alert(themessage);
		return false;
	   }
	}