I have an aspx that has the following javascript function being ran during the onload event of the body.
If you don't want to explicitly assign window.onload or use a framework, consider:
http://www.quirksmode.org/js/events_advanced.html