﻿// Validates the moreInfo form

function validate() { 
	if (document.moreInfoForm.nameTextBox.value.length < 1) {
		alert("Please enter your full name.");
		return false;
	}
	var regex = /^[\w\.-]+@[\w\.-]+\.[a-zA-Z]{2,3}$/
	if (!regex.test(moreInfoForm.emailTextBox.value)) {
		alert("Invalid email address.");
		return (false);
	}

    return true;
}
