//Form data validation starts here

//This checks for input in the  fullName field
function validName(fullName) {
			if (fullName == "") {
				return false
			}
		}	

//This checks for input in the  telephone field
function validNumber(telephone) {
			if (telephone == "") {
				return false
			}
		}	

function validEmail(email) {
			if (email == "") {
				return false
			}
		}	

function validEnquiry(enquiry) {
			if (enquiry == "") {
				return false
			}
		}	
		
//Check email address
/* re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ 
		function submitIt(enquiryform) {
			if (re.test(enquiryform.email.value)) {
				return true
			}
			alert("Invalid email address")
			enquiryform.email.focus()
			enquiryform.email.select()
			return false
		} */
//end email check

		
function submitIt(enquiryform) {

//This checks for input in the family name field
			if (enquiryform.fullName.value == "") {			//added this to check for no family name input
				alert("Please enter your name.")
				enquiryform.fullName.focus()
				return false
			}
			
			//This checks for input in the telephone number field
			if (enquiryform.telephone.value == "") {			//added this to check for no family name input
				alert("Please enter your telephone number.")
				enquiryform.telephone.focus()
				return false
			}
			
			// check to see if the email's valid
			if (enquiryform.email.value == "") {		//added this to check for no email input
				alert("Please enter your e-mail address.")
				enquiryform.email.focus()
				return false
			}
			
			// check to see if the enquiry box is not empty
			if (enquiryform.enquiry.value == "") {		//added this to check for no enquiry input
				alert("Please type your message in the enquiry box.")
				enquiryform.enquiry.focus()
				return false
			}
			
			/* if (!validEmail(enquiryform.email.value)) {
				alert("Invalid email address")
				enquiryform.email.focus()
				enquiryform.email.select()
				return false
			} */
			
			// If we made it to here, everything's valid, so return true
			return true
		}
