regex1 = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
regex2 = /^(\w+[ ]*[\[\]\/\.\-\?\(\)\&\,\!\'\:\;\þ]*\s*\n*\r*[ ]*)+$/
regex3 = /^([A-z]+)$/
regex4 = /^(\d+)$/

function checkMsg2(maxchar) {
	if (document.contForm.Comments.value.length > maxchar) {
	alert("Please keep your message to under " + maxchar + " characters");
	document.contForm.Comments.select();
	document.contForm.Comments.focus();
	return false;
	}
	sendForm2();
}

function sendForm2() {
	var okSofar=true;

	if(document.contForm.Comments.value.length > 0){
		if (!regex2.test(document.contForm.Comments.value)){
		alert("What you typed is not going to work. The acceptable characters are . - ? ( ) & , ! ';:.");
		document.contForm.Comments.select();
		document.contForm.Comments.focus();
		okSofar=false;
		}
	}

	if (!regex1.test(document.contForm.Email.value)){
	alert("Please enter a correct email address.");
	document.contForm.Email.select();
	document.contForm.Email.focus();
	okSofar=false;
	}

	if(document.contForm.Name.value.length<1){
	alert("Please enter your Name.");
	document.contForm.Name.select();
	document.contForm.Name.focus();
	okSofar=false;
	}

	if(okSofar == true) document.contForm.submit();
}