// JavaScript Document

<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a first tname
	if (document.frmEnquiry.formFirstName.value == ""){
		errorMsg += "\n\ \t Enter First Name";	
	}

	//Check for a last name
	if (document.frmEnquiry.formLastName.value == ""){
		errorMsg += "\n\ \t Enter Last Name";	
	}


	//Check for a company name
	if (document.frmEnquiry.formCompany.value == ""){
		errorMsg += "\n\ \t Enter Company";	
	}

	//Check for an email address
	if (document.frmEnquiry.formEmail.value == ""){
		errorMsg += "\n\ \t Enter Email Address";	
	}

	//Check for a telephone number
	if (document.frmEnquiry.formPhone.value == ""){
		errorMsg += "\n\ \t Enter Telephone Number";	
	}

	//If there is a problem with the form then display an error
	if (errorMsg != ""){
		msg = "_______________________________________________\n\n";
		msg += "Your inquiry has not been sent because there are problem(s) with the form.\n";
		msg += "Please correct the problem(s) and re-submit the form.\n";
		msg += "_______________________________________________\n\n";
		msg += "The following field(s) need to be corrected:\n";
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}
// -->