function yonlen() { var strUrl = "/forum.htm"; window.location=strUrl; } function startTimer() { if (secs == 10) { document.location.href="/index.htm"; } else { document.getElementById("timer").innerHTML = secs; secs = secs - 1; self.setTimeout("startTimer()", delay); } }