// 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
	$("#contactform").validate({
		rules: {
			name: "required",
			email: {
				required: true,
				email: true
			},
			phone: {
				required: true,
				minlength: 7,
				digitsandchars: true
			},
			helpwith: "required"
		},
		messages: {
			name: "First name or nickname is fine.",
			email: "Please enter a valid email address.",
			phone: "Please enter at least 7 digits. No letters.",
			helpwith: "It can be as simple as 'SEO', or you could write a few sentences. The more descriptive you are, the better."
		}
	});
	
});
