$(function() {
	ContactForm.init();
});

var ContactForm = {
	SubmitButton: null,
	
	init: function() {
		var cc = this;	
		cc.SubmitButton  = $('#RewardRegistrationSubmit');
		
		cc.events();
		cc.validation();
		cc.render();
	},
	events: function() {
		var cc = this;
	
	},	
	render: function(url) {
		var cc = this;

	},
	validation: function() {
		var cc = this;
		$("#ContactForm").validate({
			submitHandler: function(form) {
				var cc = this;
				$('#ContactFormSubmit').fadeOut('fast', function(){
					Loading.show();
					form.submit();
				});
			 },
			errorElement: "div"
		});

		
	}
}