regex1 = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
regex2 = /^(\w+[ ]*[\.\-\?\(\)\&\,\!\'\:\;\þ\s]*[ ]*)+$/
regex3 = /^([A-z]+[ ]?[A-z]*)$/

function sendForm() {
	var okSofar=true;

	if (!regex1.test(document.ordForm.email.value)){
	alert("Please enter a correct email address.");
	document.ordForm.email.select();
	document.ordForm.email.focus();
	okSofar=false;
	}

	if (document.ordForm.phone.value.length < 7){
		alert("Please provide your phone number.");
		document.ordForm.phone.select();
		document.ordForm.phone.focus();
		okSofar=false;
	}
	
	if (!regex3.test(document.ordForm.lname.value)){
	alert("Please enter a last name.");
	document.ordForm.lname.select();
	document.ordForm.lname.focus();
	okSofar=false;
	}

	if (!regex3.test(document.ordForm.fname.value)){
	alert("Please enter a first name.");
	document.ordForm.fname.select();
	document.ordForm.fname.focus();
	okSofar=false;
	}

	if (okSofar == true) {
	document.ordForm.submit();
	}
}