function doValidate()
{	
	return $("contact-form").validate();	
}
function showResponse()
{
	//nothing to do here.
}
jQuery(function() {
	// show a simple loading indicator
	var loader = jQuery('<div id="loader"><img src="images/loading.gif" alt="loading..." /></div>')
		.css({position: "relative", top: "1em", left: "25em"})
		.appendTo("body")
		.hide();
	jQuery().ajaxStart(function() {
		loader.show();
	}).ajaxStop(function() {
		loader.hide();
	}).ajaxError(function(a, b, e) {
		throw e;
	});
	
	var v = jQuery("#contact-form").validate({
		submitHandler: function(form) {
			jQuery(form).ajaxSubmit({
				target: "#contact-form"
			});
		}
	});
	
	jQuery("#reset").click(function() {		
		v.resetForm();
	});
});