Добрый день!

Хотел найти скрипт, который работает так: Пишите дату (например 30.11.05) и скрипт показывает вам, сколько дней часов минут и секунд Осталось до Нового Года.

Я вот тут нашел хороший Ява скрипт, но там не указыватся оставшиеся дни, тоесть тут только часы, минуты и секунды.

Можте помочь добавить сюда, что б и дни считывались:


<div id=&#39;x1&#39; style=&#39;padding:10px; border: 1px dashed red;&#39;>
<div align="center">
<script Language="JavaScript">


var timeStr, dateStr, ostStr, x;

function clock() {
now= new Date();
ex = new Date(2006,0,1,0,0,0);

// время
hours= now.getHours();
minutes= now.getMinutes();
seconds= now.getSeconds();
timeStr= "" + hours;
timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;

// дата
date= now.getDate();
month= now.getMonth()+1;
year= now.getYear();
dateStr= "" + date;
dateStr+= ((month < 10) ? "/0" : "/") + month;
dateStr+= "/" + year;




ostStr= "";
x = (ex.getTime() - now.getTime())/1000;
ostStr = Math.floor(x/60/60) + &#39; ч. &#39;;
ostStr = ostStr + Math.floor((x/60/60 - Math.floor(x/60/60))*60) + &#39; мин. &#39;;
x = (((x/60/60 - Math.floor(x/60/60))*60) - Math.floor((x/60/60 - Math.floor(x/60/60))*60))*60;
ostStr = ostStr + Math.floor(x) + &#39; сек. &#39;;


document.getElementById(&#39;x1&#39.innerHTML = &#39;До Нового 2оо6 Года осталось: &#39; + &#39;&#39; + ostStr;

Timer= setTimeout("clock()",10);
}

clock();
</script>[/quote]

Спасибо