$(document).ready(function() {

$("#EmailListForm").validate({
	event: "keyup",
	rules: {
		FirstName: {
			required: true,
			minlength: 2
		},
		LastName: {
			required: true,
			minlength: 2
		},
		Email: {
			required: true,
			email: true
		},
		SpamPrevention: {
			required: true,
			minlength:6
		}
	},
	messages: {
		FirstName: {
			required: "Please fill First Name.",
			minlength: "First Name should be  atleast 2 characters long."
		},
		LastName: {
			required: "Please fill Last Name.",
			minlength: "Last Name should be  atleast 2 characters long."
		},
		Email: {
			required: "Please enter your email, this will be confidential.",
			email: "Please enter a valid email."
		},
		SpamPrevention: {
			required: "Please fill spam prevention code.",
			minlength: "Spam prevention answer should be 6 characters long."
		}
	}
});


});

