function validEmail(email) {
			invalidChars = " /:,;"
	
			if (email == "") {						 
				return false
			}
			for (i=0; i<invalidChars.length; i++) {	 
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {
					return false
				}
			}
			atPos = email.indexOf("@",1)			 
			if (atPos == -1) {
				return false
			}
			if (email.indexOf("@",atPos+1) != -1) {	 
				return false
			}
			periodPos = email.indexOf(".",atPos)
			if (periodPos == -1) {					 
				return false
			}
			if (periodPos+3 > email.length)	{		 
				return false
			}
			return true
			}
		// Function to check a form field or string for emptiness or a null value.
	 
		function isEmpty(str) {
			return (str == null || str == "");
			return false;
		}
		 

		function validate(orderForm) {

		
			// check to see if  first name was entered
			if (isEmpty(orderForm.First_Name.value)) {
				alert("Please enter your first name!");	
				orderForm.First_Name.focus();
				orderForm.First_Name.select();		
				return false;
			}
			
			// check to see if  last name was entered
			if (isEmpty(orderForm.Last_Name.value)) {
				alert("Please enter your last name!");
				orderForm.Last_Name.focus();
				orderForm.Last_Name.select();
				return false;
			}
			
			// check to see if email address is valid
			if (!validEmail(orderForm.theemail.value)) {
				alert("Please enter a valid email address!");
				orderForm.theemail.focus();
				orderForm.theemail.select();
				return false;
			}
			
			}			
