// $.validator.setDefaults({
//  submitHandler: function() {  }
// });

// this one requires the text "buga", we define a default message, too
$.validator.addMethod("validate", function(value) {
	return value == "cupcake";
}, 'Oops! You spelled "cupcake" wrong!');

$.validator.addMethod("interests", function(value) {
	return value != "select...";
}, "That's not very interesting.");

$(document).ready(function() {
	// validate the comment form when it is submitted

  $("#contact-form form").validate({
    rules: {
      validate: "validate",
      interest: "interests"
    },
    messages: {
      name: "You running from the law?",
      email: "We promise not to spam you!",
      phone: "C'mon let me get your digits...",
      validate: "What, you don't like cupcakes?"
    }
  });

});
