<!-- //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 form_validator(theForm)
{


 	if(theForm.laminate.value == "") {
 		 alert("Please enter a Laminate Size.");
 		 theForm.laminate.focus();
 		 return(false);
 	}

 	if(theForm.sendername.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.sendername.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.sender.value)) {
		 alert("Please enter a valid Email Address");
		theForm.sender.focus();
		 return false;

	}

 	if(theForm.telephone.value == "") {
 		 alert("Please enter your Telephone Number.");
 		 theForm.telephone.focus();
 		 return(false);
 	}

 	if(theForm.comp_address.value == "") {
 		 alert("Please enter your company address.");
 		 theForm.comp_address.focus();
 		 return(false);
 	}

 	if(theForm.chosen_styles.value == "") {
 		 alert("Please choose a style.");
 		 theForm.chosen_styles.focus();
 		 return(false);
 	}

 	if(theForm.chosen_finishes.value == "") {
 		 alert("Please choose a finish.");
 		 theForm.chosen_finishes.focus();
 		 return(false);
 	}

	return (true);
}
// end script hiding -->
