{
	rules:{
		firstName: {
			required: true
		},
		lastName: {
			required: true
		},
		name: {
			required: true
		},
		loginPassword: {
			required: true,
			minlength: 6
		},
		loginPasswordVeri: {
			equalTo: "#loginPassword"
		},
		email: {
			required: true,
			email: true
		},
		homePhone: {
			phoneUS: true
		},
		agreedToTermsAndConditions: {
			required: true
		},
		address: {
			required: true
		},
		city: {
			required: true
		},
		postalZip: {
			required: true
		},
		country: {
			required: true
		},
    defaultBook: {
			required: true
		},
		freePromotionCode: {
			required: function(e){return $("input[name=displayPromoCode]").is(":checked") && checkPromoCode() }
		}
	},
	messages:
	{
		loginPasswordVeri: "Please enter the same value you entered in the password field.",
    	freePromotionCode: "Please make sure to enter a valid promotion code.",
      defaultBook: "Please select a default book for your profile."
	}
}