function pre(formdata) {	$("#info").html("<p>Please Wait Sending...<img src='../images/loader.gif' /'></p>")}function post(response) {	if( response.indexOf('error') >= 0) {		 //Output error message from response.		 $("#info").html(response)	} else {		 $("#info").html("<p><strong>Thank you</strong>, your enquiry was successfully sent. We will be in contact shortly!</p>");	}}var options = {	beforeSubmit:  pre,	success:       post,	target: "#info",	resetForm: false};$().ready(function() {	$("#contact").validate({				 submitHandler: function(form) {					  $(form).ajaxSubmit(options)				  }			});});
