var CountDownTimer={
	set:function(elementId,year,month,day,hours,minutes,seconds,format)
	{
		var e=document.getElementById(elementId);
		e.endDate=new Date(year,month-1,day,hours,minutes);
		e.format=format;
		e.go=function()
		{
			var now=new Date();
			var diffms=this.endDate-now;
			var str=this.format.replace("<$d$>",Math.floor(diffms/1000/60/60/24).toString())
					.replace("<$h$>",(Math.floor(diffms/1000/60/60)%24).toString())
					.replace("<$m$>",(Math.floor(diffms/1000/60)%60).toString())
					.replace("<$s$>",(Math.floor(diffms/1000)%60).toString());
			this.innerHTML=str;
			setTimeout("document.getElementById(\""+this.id+"\").go()",1000);
			return;
		}
		if(window.onload==null)
		{
			window.onload=function()
			{
				e.go();
			};
		}
		else
		{
			var oldonload=window.onload;
			window.onload=function()
			{
				oldonload();
				e.go();
			};
		}
		return;
	}
}