function CheckForm () {

	//Initialise variables
	var errorMsg = "";

	//Check for a first name
	if (document.contactForm.firstname.value == ""){
		errorMsg += "\n\tFirst Name\t- Enter your first name";
	}

	//Check for a last name
	if (document.contactForm.lastname.value == ""){
		errorMsg += "\n\tLast Name\t- Enter your last name";
	}

	//Check for an e-mail address and that it is valid
	if ((document.contactForm.email.value == "") || (document.contactForm.email.length > 0 && (document.contactForm.email.value.indexOf("@",0) == - 1 || document.contactForm.email.value.indexOf(".",0) == - 1))) {
		errorMsg += "\n\tE-mail Address\t- Enter Your e-mail address";
	}

	if (!document.contactForm.terms.checked) {
		errorMsg += "\n\tTerms\t\t- You have not accepted the Terms & Conditions";
	}
	
	//Check for a subject
	if (document.contactForm.subject.selectedIndex == 0){
		errorMsg += "\n\tSubject\t\t- Choose a subject";
	}
	
	//Check for a message
	if (document.contactForm.message.value == ""){
		errorMsg += "\n\tMessage\t\t- Enter a message";
	}

	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "There was one or more errors when attempting to contact us.\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;
}