function checkform() {
	msg = "";

	// contact details
	if (document.frm.fname.value == "")  msg = msg + "- First name\n";
	if (document.frm.lname.value == "")  msg = msg + "- Last name\n";
	if (!emailcheck(document.frm.email.value)) msg = msg + "- A valid email address\n";
	
	// Arrival & Departure
	
	if (!check2dates("arrival_date","depart_date")) msg = msg + "- Your arrival and departure dates\n";

	// display the form check	
	if (msg!="")
		{
		alert ("Please complete the following:\r\n\r\n"+msg);
		return false;
		}
}
