// JavaScript Document

// Validate and Submit Contact Form
function validate() {
	var eMail = document.forms["catalog"].email.value;
	
	var errors ="Please fix the following before submitting your form:\n"
		
	if(eMail == "") {
		errors += "- You must enter your e-mail address.\n";
	} else if((eMail.indexOf("@") == -1) || (eMail.indexOf(".") == -1) || (eMail.length < 7)) {
		errors += "- You must enter a vaild e-mail address.\n";
	};
		
	if(errors.length > 54) {
		alert(errors);
		return false;
	}
		
	return true;
}
