<SCRIPT LANGUAGE="JavaScript"><br/>
today=new Date();<br/>
Future=new Date('January 1, 2013');
if (today.getTimezoneOffset() == 0) (
a=today.getTime() + (4*60*60*1000))
else (a=today.getTime())
today.setTime(a)
b = (Future.getTime() - today) / (24 * 60 * 60 * 1000);
rez = Math.ceil(b);
if (rez > 1) document.write('До нового года осталось '+rez+' дней/дня')
else if (rez == 1) document.write('ЗАВТРА НОВЫЙ ГОД!!!')
else if (rez <= 0) document.write('С НОВЫМ ГОДОМ!!!')
</SCRIPT>