<!-- //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(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.DayTel.value == "") {
 		 alert("Please enter your daytime telephone number.");
 		 theForm.DayTel.focus();
 		 return(false);
 	}

 	if(theForm.EveTel.value == "") {
 		 alert("Please enter your evening telephone number.");
 		 theForm.EveTel.focus();
 		 return(false);
 	}

 	if(theForm.mobile.value == "") {
 		 alert("Please enter your mobile telephone number.");
 		 theForm.mobile.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.email.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email.focus();
		 return false;
	}

 	if(theForm.mobile.value == "") {
 		 alert("Please enter your mobile telephone number.");
 		 theForm.mobile.focus();
 		 return(false);
 	}

    if ( ( theForm.profession[0].checked == false )
    && ( theForm.profession[1].checked == false )
    && ( theForm.profession[2].checked == false )
    && ( theForm.profession[3].checked == false )
    && ( theForm.profession[4].checked == false ) )
    {
        alert ( "Please select a profession option" );
       return(false);
    }

		if ((theForm.profession[4].checked == true) && (theForm.profother.value == "")) {
			alert("Please enter your profession.");
			theForm.profother.focus();
			return(false);
		}

    if ( ( theForm.salon[0].checked == false )
    && ( theForm.salon[1].checked == false )
    && ( theForm.salon[2].checked == false ) )
    {
        alert ( "Please select a salon option" );
       return(false);
    }

 	if(theForm.area.value == "") {
 		 alert("Please enter an answer.");
 		 theForm.area.focus();
 		 return(false);
 	}

 	if(theForm.whom.value == "") {
 		 alert("Please enter an answer.");
 		 theForm.whom.focus();
 		 return(false);
 	}

    if ( ( theForm.contact[0].checked == false )
    && ( theForm.contact[1].checked == false ) )
    {
        alert ( "Please select a contact option" );
       return(false);
    }

		if ((theForm.contact[0].checked == true) && (theForm.contactother.value == "")) {
			alert("Please enter an approximate date.");
			theForm.contactother.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);
			}
		}

	return (true);
}

// end script hiding -->
