$(document).ready(function()
{
	$("#feedback2").validate({
		
		/*Set up the rules per field*/
		rules :
		{
			name :
			{
				required : true,
				minlength : 2
			},
			email :
			{
				required : true,
				email : true
			},
			message :
			{
				required : true,
				minlength : 2
			}
		},
		
		/*Define the error messages for each field. Define messages for empty fields and incorrect fieds*/
		messages :
		{
			name :
			{
				required : "Tell me your name.",
				/*Check the length, if it's less than minlength, display the following*/
				minlength : "I think your name is actually longer than that."
			},
			email :
			{
				required : "Let me know how to get back with you.",
				/*Make sure the e-mail is valid*/
				email : "Oops, incorect email address!"
			},
			message :
			{
				required : "Let me know how I can help you.",
				/*Check the length, if it is less than minlength, display the following*/
				minlength : "I am going to need more info than that."
			}
		}		
	});
});