// JavaScript Document
function validateForm1() {
   isValid = true;
 
   if (!validateInputBox(document.getElementById('form1').name.value))
       { isValid = false; alert(' Please fill in your name.'); 
	   document.getElementById('form1').name.focus();
	   }
   if (!validateInputBox(document.getElementById('form1').email.value))
       { isValid = false; alert(' Please fill in a correct email address.');
	   	document.getElementById('form1').email.focus();
	   }
   if (!validateInputBox(document.getElementById('form1').phone.value))
       { isValid = false; alert(' Please fill in your home phone number.');
	   	 document.getElementById('form1').phone.focus();
	   }

   if (isValid)
       alert ("Thank you. Your form is being sent.");

   return isValid;
}

function validateInputBox(text) {
   return (text.length > 0);
}
function validateEmail(emailAddress) {
   var match = /^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/.test(emailAddress); 
   return match;
}

//-->
