// JavaScript Document

<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm (contactBuff) { 

	//Initialise variables
	var errorMsg = "";

	//Check for a name
	if (document.contactBuff.name.value == ""){
		errorMsg += "\n\tName \t ";
	}
	

	//Check for an e-mail address and that it is valid
	if ((document.contactBuff.email.value == "") || (document.contactBuff.email.value.length > 0 && (document.contactBuff.email.value.indexOf("@",0) == - 1 || document.contactBuff.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail Address \t ";
	}
		
		
	//Check for a comment
	if (document.contactBuff.comment.value == "") { 
 		errorMsg += "\n\tQuestion/Comment \t\t ";
	}
			
			
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "\n\n";
		msg += "Your comment/question has not been sent.\n";
		msg += "Please fill in the required feild(s) and re-submit the web form.\n";
		msg += "\n\n";
		msg += "The following feild(s) need answers: \n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}
// -->
