The headers do not have to be already passed by. Put this statement before the <HEAD> tag and you should be able to echo into this. If that is not possible I would look for a javascript code that can do this.
I found this on on the net it might work.
JavaScript Redirects
<script language=javascript>
setTimeout("location.href='[some-url]'", [time]);
</script>
Replace [time] with milliseconds. This will pause the browser for the specified number of seconds. Replace [some-url] with the target URL you want to redirect. For example,
setTimeout("location.href='http://www.yahoo.com'", 5000);