I'm a bit late w/ this post, but hope it'll help someone.
this is for dividers <div> tags on the html page. but it can be used for forms too. i know i'm using a variant of it at work and it works for ie, mozilla, safari, netscape, so try it out.
try this
<script language="javascript">...