Hello,

I have this script (which i didn't program) which is suppose to count down an amount of time, and then redirect the page to another place. It works fine on IE/Opera but it doesn't on Netscape/Mozilla. I was wondering if any one could tell me the couse or another script that will work on most browsers.
Thanks a lot


Code:
time_in_sec = 300;

function nextSec()
{

  m = Math.floor(time_in_sec / 60);
  s = time_in_sec % 60;

  if (s < 10) { s = "0" + s; }

  if ((m == 0)&&(s == 0))
  {
    location.replace("SOME_URL");
  } else {
    document.all.counter.innerHTML = '<font style="font-size: 13pt" color="#999999">' + m + ":" + s + "</font>";
    window.setTimeout('nextSec()',1000);
  }
  time_in_sec--;
}