$(function() {

		$('#referralFormSubmit').click( function() {
			$('#referralFormSubmit').toggle();
			$('#loadingButton').toggle();
			$('label').removeClass('error');
			$('#errorDiv').fadeOut();
			var serializedForm = $('#referralForm').serialize();
			$.post("process.php", { serializedForm: serializedForm },
			function(data){
			$('#loadingButton').toggle();
			$('#referralFormSubmit').toggle();	
			eval(data);
			});
			return false;
		});

});
