Named anchor in IE7 problem

Hello,

I have a mailform that’s not at the top of the page. It gets processed by the same page and it could generate an error message just above the form. If the submit button is pressed, it should jump to the named anchor thats placed there.


...
<a id="gotomail" name="gotomail"></a>
<p>ERROR: Please fill in a name.</p>
<form action="contact.php#gotomail" method="post" id="mailform">
...

PROBLEM: IE7 jumps only when it feels like it, it only works half the time.
(Firefox jumps everytime to the anchor)

How to solve this? The contact.php gets put together with 4 include()'s and the form data has to be processed, could this cause a delay and IE7 is to fast?

Is there an alternative to get the same jump down the page after each submit?

Thanks!