	
	
function Validatecontactform(theForm)
	{

		
		if (theForm.firstname.value == "")
		{
		  alert("Please enter your name.");
		  theForm.firstname.focus();
		  return (false);
		} /* First_Name */



		
		
		if (theForm.email.value == "")
		{
		  alert("Please enter your email address so we can contact you.");
		  theForm.email.focus();
		  return (false);
		} /* email */
		
		
		if (theForm.phone.value == "")
		{
		  alert("Please enter your phone number so we can contact you.");
		  theForm.phone.focus();
		  return (false);
		} /* phone */

		
		
		
	var emailpat;
	emailpat = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+$/;
		if( !emailpat.test( theForm.email.value ) ) {
		  alert("Please enter a valid email address.");
      			theForm.email.focus();
      			return (false);
		} /* Email */
		
	
		if (theForm.comments.value == "")
		{
		  alert("Please give a brief description of why you are contacting us.");
		  theForm.comments.focus();
		  return (false);
		} /* comments */
  
	    return (true);
	    
} /* Validatecontactform */
	


function Validatequoteform(theForm)
	{

		
		if (theForm.email.value == "")
		{
		  alert("Please enter your email address so we can contact you. Your email address will never be disclosed to anyone else and we don't do spam.");
		  theForm.email.focus();
		  return (false);
		} /* email */
		
		
		var emailpat;
		emailpat = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+$/;
			if( !emailpat.test( theForm.email.value ) ) {
			  alert("Please enter a valid email address.");
				theForm.email.focus();
				return (false);
			} /* Email */
			
			
		var checkFound = false;
		for (var counter=0; counter < theForm.length; counter++) {
		if ((theForm.elements[counter].name == "design") && (theForm.elements[counter].checked == true)) {
		checkFound = true;
		}
		}
		if (checkFound != true) {
		alert ("Please select the amount of design work do you need.");
		 return (false);
		}

		

	
  
	    return (true);
	    
} /* Validatequoteform */
