function CheckForm () { 

	//Initialise variables
	var errorMsg = "";

	//Check for a name
	if (document.frmEnquiry.Name.value == ""){
		errorMsg += "\n\Name \t- Please enter your Name";	
	}
	
	//Check for an email address and that it is valid
	if ((document.frmEnquiry.Email.value == "") || (document.frmEnquiry.Email.value.length > 0 && (document.frmEnquiry.Email.value.indexOf("@",0) == - 1 || document.frmEnquiry.Email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\Email Address \t- Please enter a Valid Email Address";
	}
			
	//Check for a question or comment
	if (document.frmEnquiry.Info.value == ""){
		errorMsg += "\n\Question or Comment \t- Please enter your Question or Comment";	
	}

	//If there is a problem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "Your inquiry cannot been sent because there is a problem 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;
}
