// Turn off the alert pop up
wf.showAlertOnError = false;
 
wf.functionName_formValidation = "myCustomValidation";
function myCustomValidation (evt) {
	if(wf.formValidation(evt)) new Ajax.Updater('result', 'sendmail.php',{onLoading:function(request){SendMail()},onComplete:function(request){handleRequest()},parameters:Form.serialize(document.forms['contact']), 
insertion:Insertion.Bottom, asynchronous:true});
	return wf.utilities.XBrowserPreventEventDefault(evt);
}
		function SendMail() {
			//Make the Progress Bar Appear
			new Effect.Appear('progress');
		}
		function handleRequest() {
			// Fade the Progress Bar
				new Effect.Fade('progress');
			// Make the form itsef wipe up
				new Effect.BlindUp('form');
			// Show the result!
				new Effect.Appear('result');
		}