Put the message in a div or span tag and give it a unique id, like:
<div id="waitmessage">Please wait...</div>
In the Javascript, replace the line that does the redirect
(location.href=...) with a call to the show/hide functions from here:
http://getelementbyid.com/scripts/index.aspx?CodeID=5
If you want the message to collapse out of the page as well as
disappear, then add a line like:
document.getElementById(id).style.position = "absolute";
to collapse, and if you want to show again, like:
document.getElementById(id).style.position = "relative";
This should work like a charm in most browsers nowadays. There are a
lot of other ways to hide the "please wait" message once the page loads,
but these are more appropriate for a Javascript/HTML forum.
Shailesh