// Turn off the alert pop up
wf.showAlertOnError = false;
 
// Tap into the validation routine and do our Ajax stuff
wf.functionName_formValidation = "myCustomValidation";
function myCustomValidation (evt) {
	if(wf.formValidation(evt)) new Ajax.Updater('result', 'include/sendmail.php',
{onLoading:function(request){sendmail()},onComplete:function(request){handelrequest()},
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',{duration:1.0,from:0.0,to:1.0});
		}
		function handelrequest() {
			// Fade the Progress Bar
				setTimeout(function(){ new Effect.Fade('progress'); },5000);
				setTimeout(function(){ new Effect.Appear('result'); },6000);
		}

