Timer Javascript
<p>This doesn't work in IE. Forever - 00:00:00
Works in Chrome, Firefox.
Why?
How can I fix it?</p>

<pre><code>function timer()
{
    var now = new Date();
    var enddate = new Date("07,12,2012,23:00:00");
    var totalRemains = (enddate.getTime()-now.getTime());
    if (totalRemains&gt;1)
    {
        var RemainsSec=(parseInt(totalRemains/1000));
        var RemainsFullDays=(parseInt(RemainsSec/(24*60*60)));
        var secInLastDay=RemainsSec-RemainsFullDays*24*3600;
        var RemainsFullHours=(parseInt(secInLastDay/3600));
        if (RemainsFullHours&lt;10){RemainsFullHours="0"+RemainsFullHours};
        var secInLastHour=secInLastDay-RemainsFullHours*3600;
        var RemainsMinutes=(parseInt(secInLastHour/60));
        if (RemainsMinutes&lt;10){RemainsMinutes="0"+RemainsMinutes};
        var lastSec=secInLastHour-RemainsMinutes*60;
        if (lastSec&lt;10){lastSec="0"+lastSec};
        var mcend = Date.parse("Jan 1, 2009, 00:00:00");
        var mcnow = now.getTime();
        var mc = ((mcend-mcnow)/10).toFixed(0).substr(8);
        document.getElementById('timer').innerHTML = '&lt;p class="timeline"&gt;TIME LEFT: '+ RemainsFullHours+":"+RemainsMinutes+":"+lastSec+'&lt;/p&gt;';
        setTimeout("timer()",10);
    } 
    else {document.getElementById("timer").innerHTML = '&lt;p class="timeline"&gt;TIME LEFT: 00:00:00&lt;/p&gt;';}
}

&lt;body onload="timer();"&gt;
</code></pre>

<p>Can you help me please?</p>
