// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

if(typeof $j != "undefined") {
//initiate validator on load
$j(function() {
	// validate contact form on keyup and submit
	$j("#newsletter_signup").validate({
		//set the rules for the field names
		rules: {
			question_2: {
			required: true,
			email: true
			},
			question_473: {
			required: true,
			number: true
			}
		},
		//set messages to appear inline
		messages: {
		question_2: "Please enter your (valid) email",
		question_473: "Please enter your (valid) zipcode"		
		}
	});
});
}
