function checkform() {
	msg = "";

	// contact details
	if (document.frm.fname.value == "")  msg = msg + "- Your first name\n";
	if (document.frm.lname.value == "")  msg = msg + "- Your last 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";
	if (document.frm.country.value == "")  msg = msg + "- Your country of origin\n";
	if ((document.frm.travel_agent.checked == true) && (document.frm.travel_agent_company.value == "")) msg = msg + "- Name of your company\n";

	// accommodation
	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";
	if (document.frm.num_children.value == "" || isNaN(document.frm.num_children.value))  msg = msg + "- Number of children\n";
	if ((document.frm.num_children.value > 0) && (document.frm.children_ages.value == ""))  msg = msg + "- Ages of children\n";

	// apartments selected

	// flight details
	if (get_radio_value("flights_needed") == "Yes" && document.frm.flight_details.value == "" ) msg = msg + "- Your flight details / requirements\n";
	
	// car hire
	if (get_radio_value("carhire_needed") == "Yes" && !get_radio_value("Preferred_Vehicle")) msg = msg + "- Preferred Vehicle\n";
	if (get_radio_value("Preferred_Vehicle") == "Other" && document.frm.Other_Car.value == "")  msg = msg + "- Specify other vehicle\n";


	// day tours

	// SA tours

	// how hear about us
	if (!get_radio_value("How_Hear_About_Us"))  msg = msg + "- How you heard about us\n";
	if (get_radio_value("How_Hear_About_Us") == "Other" && document.frm.How_Hear_About_Us_Details.value == "")  msg = msg + "- How you heard about us\n";
	
	// submit enquiry
	if (!get_radio_value("Enquiry_Response"))  msg = msg + "- Nature of your enquiry\r\n";
	if (!document.frm.Terms.checked) msg = msg + "- Please read the terms and conditions\n";

	// display the form check	
	if (msg!="")
		{
		alert ("Please complete the following:\r\n\r\n"+msg);
		return false;
		}
}
