	wf.functionName_formValidation = "myCustomValidation";
		function myCustomValidation (evt) {
			
		document.forms[7].static.value = '0';
	var formElement = wf.utilities.getSrcElement(evt);
   if(formElement.id != 'comments_form')
       return true;
			if (wf.formValidation(evt)) new Ajax.Updater('readcomments', 'http://jpn.icicom.up.pt/mt/mt-comments.cgi',{onLoading:function(request){item_loading()},onComplete:function(request){item_added()},parameters:Form.serialize(document.forms[7]), insertion:Insertion.Bottom, asynchronous:true});
			return wf.utilities.XBrowserPreventEventDefault(evt);
		}
		function item_added() {
			new Effect.Fade('progress');
			document.forms[7].submitbutton.disabled = false;
            document.forms[7].resetbutton.disabled = false;
			document.forms[7].text.disabled = false;
			document.forms[7].email.disabled = false;
			document.forms[7].url.disabled = false;
			document.forms[7].author.disabled = false;
			document.forms[7].bakecookie.disabled = false;
			document.forms[7].text.value = '';
			new Effect.Appear('newComment');
		}
		function item_loading() {
			// kill the form buttons, show a loading indicator...
			document.forms[7].submitbutton.disabled = true;
           document.forms[7].resetbutton.enabled = false;
			document.forms[7].text.disabled = true;
			document.forms[7].email.disabled = true;
			document.forms[7].url.disabled = true;
			document.forms[7].bakecookie.disabled = true;
			document.forms[7].author.disabled = true;
			new Effect.Appear('progress');
			if (document.forms[7].bakecookie.checked) rememberMe(document.forms[7]);
		}
