ASP.NET: Custom SetFocusOnError behavior for RequiredValidators
<p>Is there a way I can override the default scrolling using when SetFocusOnError = true?  Right now it pops the user up the page so that the top of the control is at (0,0).  The problem is that our labels are above the controls, so the user can't see the label without scrolling up a little more.  I'd like to make it center the control vertically instead, and ideally even do a nice smooth jQuery slide up.  </p>

<p>I tried like this but it didn't work (never gets fired):</p>

<pre><code>function WebForm_AutoFocus(obj) {
elem = document.getElementById(obj).scrollTop() - 200; //Go to 200px above where the element is
$('html, body').animate({ scrollTop: elem }, 350)
</code></pre>

<p>}</p>
