wf.showAlertOnError=false;wf.functionName_formValidation="myCustomValidation";function myCustomValidation(a){if(wf.formValidation(a)){new Request.HTML({url:"sendmail.php",onRequest:function(){sendmail()},update:$("result"),onComplete:function(){handelrequest()}}).post($("contact_form"));return wf.utilities.XBrowserPreventEventDefault(a)}else{return wf.utilities.XBrowserPreventEventDefault(a)}}function sendmail(){document.getElementById("progress").style.opacity="0";document.getElementById("progress").style.filter="alpha(opacity=0)";document.getElementById("progress").style.display="";new Fx.Tween("progress").start("opacity","0","1")}function handelrequest(){new Fx.Slide("form").slideOut();document.getElementById("result").style.opacity="0";document.getElementById("result").style.filter="alpha(opacity=0)";document.getElementById("result").style.display="";new Fx.Tween("result").start("opacity","0","1")};