Count down timer speeds up
<p>I have a timer that counts down every second. The timer is used for a game: the user has up to 15 seconds
to answer to a question. Let's say the game has 10 questions. The timer works great for the first question
, but then, speeds up more and more with every question. Any suggestion is more then welcome. Thank you!</p>

<p>Code is here:</p>

<pre><code>var timeInSecs;
var ticker;
function startTimer(secs) {
    timeInSecs = secs;
    ticker = setInterval("tick()", 1000); // every second
}
function tick() {
    var seconds = timeInSecs;
    if (seconds &gt; 0) {
        timeInSecs--;
    }
    else if (seconds == 0) {
        document.getElementById("timeExpired").innerHTML = "Time expired!";
    }
    document.getElementById("countDown").innerHTML = seconds;
}
function myStopFunction() {
    clearInterval(ticker);
}​
</code></pre>
