{
rules: {
		
		name: {
			required: 	true
		},
		defaultPrice: {
			required: 	true
		},
		allowNegInvt: {
			required: 	true
		},
		categoryID: {
			required: 	true
		},		
		billingFrequency:{
			max: function(e){
				if($('select[name^=billingPeriod]').val() == "Year") return 1;
				else if($('select[name^=billingPeriod]').val() == "Month") return 12;
				else if($('select[name^=billingPeriod]').val() == "Week") return 54;
			},
			min: 0
		},
		billingPeriod:{
			required: function(e){
			 return $('input[name^=isSubscription]').is(":checked");
			}
		},
		isStripeProduct:{
			required: function(e){
			 return $('input[name^=isSubscription]').is(":checked");
			}
		}		

	}
}