I've a forum (PHPBB) that uses form and submit button:

Code:
<form id="sendform" name="postform" method="post" action="{S_POST_ACTION}">

...

<input type="submit" accesskey="s" tabindex="6" name="post" id="sendp" value="{L_SUBMIT}" class="button1 default-submit-action" />

I want to delay submission of a form to execute the JS function. I do like this:

Code:
<form id="sendform" name="postform" method="post" action="{S_POST_ACTION}" onsubmit="return PreSubmit()">


function PreSubmit()
{
  setTimeout('alert("Hello")', 5000)
  return false;
}

But the form is sent immediately because the javascript is executed immediately. Is there no way to delay the submission of a form??? Thanx