You may come across the annoying error on the browser status bar – “Please wait while scripts are loaded..” in the MOSS 2007 environment while viewing the pages.
There are many ways to find the missing HTML elements with ID…
Step 1 – Search for the document.getElementById in browser source (View->Source in the IE) and make sure all the elements specified in the document.getElementById are exists in the browser.
Brendon Schwartz has already explained this issue on their blog. You may want to check it out.
Hope you may come across this blog to resolve this error.