<!-- //hide the script
function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}


function multiform_validator(theForm)
{

 	if(theForm.sender.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.sender.focus();
 		 return(false);
 	}
 	
	if(!checkEmail(theForm.email.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email.focus();
		 return false;
	}
	
 	if(theForm.address1.value == "") {
 		 alert("Please enter your address.");
 		 theForm.address1.focus();
 		 return(false);
 	}
 	
 	if(theForm.address3.value == "") {
 		 alert("Please enter your town.");
 		 theForm.address3.focus();
 		 return(false);
 	}
 	
 	if(theForm.address4.value == "") {
 		 alert("Please enter your county.");
 		 theForm.address4.focus();
 		 return(false);
 	}
 	
 	if(theForm.address5.value == "") {
 		 alert("Please enter your post code.");
 		 theForm.address5.focus();
 		 return(false);
 	}

 	if(theForm.hearabout.value == "") {
 		 alert("Please select an answer.");
 		 theForm.hearabout.focus();
 		 return(false);
 	}
 	
		if(theForm.hearabout.value == "Website") {
			if(theForm.other.value == "") {
				 alert("Please provide more detail for the answer above.");
				 theForm.other.focus();
				 return(false);
			}
		}
		
		if(theForm.hearabout.value == "Other") {
			if(theForm.other.value == "") {
				 alert("Please provide more detail for the answer above.");
				 theForm.other.focus();
				 return(false);
			}
		}
 	
 	if(theForm.comments.value == "") {
 		 alert("Please enter your enquiry.");
 		 theForm.comments.focus();
 		 return(false);
 	}
	
	
	return (true);
}
// end script hiding -->
