/*
 * Validation: Feedback Form
 *
 */
$().ready(function(){ 
	//need to var the validator call so we can
	//use the reset function
	var validator = $("#feedbackform").validate({
		rules: {
			name : {
				required:true
			},
			email: {
				required:true,
				email:true
			},
			comments: {
				required:true,
				minLength:10
			}
		}
	});

	//reset the form when button is clicked
	$("#reset").click(function() {
		validator.resetForm();
	});

}); 
