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

