// checkform.js


function checkForm()
{
	if (document.forms["bookingform"].firstname.value == "")
	{
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Name field is required.");
	} else if (document.forms["bookingform"].surname.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Surname field is required.");
	} else if (document.forms["bookingform"].phone.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Phone Number field is required.");
	} else if (document.forms["bookingform"].email.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Email Address field is required.");
	} else if (document.forms["bookingform"].transport_required.value == "") {
		alert("The form was not submitted because of the following error.\nPlease correct this error and resubmit.\n\nThe Type of transport required field is required.");
	} else {
		document.forms["bookingform"].submit();
	}
}