function countdown(){
	var now = new Date();
	var c2010 = Date.UTC(2010,11,31, 23,59,59); 
	dd=c2010-now.getTime();
	dday=Math.floor(dd/(60*60*1000*24)*1)
	dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
	dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
	dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
	var x=document.getElementById("countdown"); 
	x.innerHTML="<h2>Days to the end of 2010</h2><p>"+
				dday+"</p><div >"+toString(dhour)+":"+toString(dmin)+":"+toString(dsec)+ "</div> ";
	setTimeout('countdown()',500);
} 
function toString(d){
	if (d<10) return "0"+d;
	else return d;
}

