// This script is for the AJAX contact form on the about page.
// 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', '/workspace/mail/index.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() {
	document.getElementById('progress').style.display = "inline";
	Form.disable(document.forms['messageform']);
}
function handelrequest() {
	document.getElementById('progress').style.display = "none";
	document.getElementById('result').style.display = "block";
}