// This placed a javascript popup window with an alert that said "Submitted!"
// It also prevented the form from sending the email & reaching the thank you page
//$.validator.setDefaults({
//	submitHandler: function() { alert("submitted!"); }
//});

$().ready(function() {	
	// validate signup form on keyup and submit
	$("#commentform").validate({
		rules: {
			author: "required",
			email: {
				required: true,
				email: true
			},
			comment: "required"
		},
		messages: {
			author: "Please enter your first name, nickname or full name.",
			email: "Please enter a valid email address. It is only for verification purposes. It will not be published.",
			comment: "If you have a comment, please type it in the box above. This field is required."
		}
	});
	
});
