Problem with onload

Check the generated html in your browser if you have not done that
already (View, Page source or similar). Also try pasting the entire
html into the w3c html validator to check there are no errors.

Colin