// JavaScript Document

<!-- Hide from older browsers
	
//Check the enquiry form is filled in correctly
function CheckForm (signUp) { 

	//Initialise variables
	var errorMsg = "";

	//Check for a first name
	if (document.signUp.firstName.value == ""){
		errorMsg += "\n\tFirst Name \t- Enter your First Name";	
	}
	
	//Check for a last name
	if (document.signUp.lastName.value == ""){
		errorMsg += "\n\tLast Name \t- Enter your Last Name";
	}
	
		 	
	//Check for an e-mail address and that it is valid
	if ((document.signUp.email.value == "") || (document.signUp.email.value.length > 0 && (document.signUp.email.value.indexOf("@",0) == - 1 || document.signUp.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail Address \t- Enter your valid e-mail address";
	}
	
	//Check for an reconfirm e-mail address and that it is valid
	if ((document.signUp.emailConfirm.value == "") || (document.signUp.emailConfirm.value.length > 0 && (document.signUp.emailConfirm.value.indexOf("@",0) == - 1 || document.signUp.emailConfirm.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tRe-confirm E-mail Address \t- Please re-confirm your valid e-mail address";
	}
			
			
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "\n\n";
		msg += "Your unsubscrition has been received 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;
}
// -->
