rem: quizTimerValue = quizTimerValue - 1; 
add:   var ec_now_epoch = new Date().getTime();   quizTimerValue = Math.floor( (ec_quiz_finish - ec_now_epoch) /1000 ); 
context: function countdown_clock(theTimer) {    var timeout_id = null;    quizTimerValue = quizTimerValue - 1;    if(quizTimerValue == 0) {        clearTimeout(timeout_id);        document.forms['responseform'].timeup.value = 1;        document.forms['responseform'].submit();    }    now = quizTimerValue;    var hours = Math.floor( now / 3600 );    parseInt(hours);    now = now - (hours * 3600);    var minutes = Math.floor(now / 60);    parseInt(minutes);    now = now - (minutes * 60);    var seconds = now;    parseInt(seconds);    var t = "" + hours;    t += ((minutes < 10) ? ":0" : ":") + minutes;    t += ((seconds < 10) ? ":0" : ":") + seconds;    window.status = t.toString();    if(hours == 0 && minutes == 0 && seconds <= 15) {        //go from fff0f0 to ffe0e0 to ffd0d0...ff2020, ff1010, ff0000 in 15 steps        var hexascii = "0123456789ABCDEF";        var col = '#' + 'ff' + hexascii.charAt(seconds) + '0' + hexascii.charAt(seconds) + 0;        theTimer.style.backgroundColor = col;    }    document.forms['clock'].time.value = t.toString();    timeout_id = setTimeout("countdown_clock(theTimer)", 1000);}
meta: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2641/cd9ca8540969d6b3b76baeb7c5d8c2e035edc97d/timer.js/clean/mod/quiz/timer.js