function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a visitors name
	if (document.frmEnquiry.VisitorsName.value == ""){
		errorMsg += "\n\tYour Name \t\t- Enter your Name";	
	}
		 	
	//Check for a visitors e-mail address and that it is valid
	if ((document.frmEnquiry.VisitorsEmail.value == "") || (document.frmEnquiry.VisitorsEmail.value.length > 0 && (document.frmEnquiry.VisitorsEmail.value.indexOf("@",0) == - 1 || document.frmEnquiry.VisitorsEmail.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tYour E-mail Address \t- Enter your valid e-mail address";
	}
	
	//Check for a friends name
	///if (document.frmEnquiry.FriendsName.value == ""){
		///errorMsg += "\n\tFriends Name \t\t- Enter your Friends Name";
	///}
	
	//Check for a friends e-mail address and that it is valid
	///if ((document.frmEnquiry.FriendsEmail.value == "") || (document.frmEnquiry.FriendsEmail.value.length > 0 && (document.frmEnquiry.FriendsEmail.value.indexOf("@",0) == - 1 || document.frmEnquiry.FriendsEmail.value.indexOf(".",0) == - 1))) { 
		///errorMsg += "\n\tFriends E-mail Address \t- Enter friends valid e-mail address";
	///}
	
	//Check for a subject
	///if (document.frmEnquiry.Subject.value == ""){
		///errorMsg += "\n\tSubject \t\t\t- Enter a Subject for the e-mail";
	///}
			
	//Check for an message
	///if (document.frmEnquiry.message.value == "") { 
 		///errorMsg += "\n\tMessage \t\t\t- Enter a message";
	///}
		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Your enquiry 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;
}
// -->