function countDown(){
	localTime = new Date();
	adjTime = localTime.getTime()+(localTime.getTimezoneOffset()*60000)-4*3600000;
	startDate = new Date(adjTime);
	endDate = (new Date(endYear, endMonth-1, endDay, endHour, endMin, endSec)).getTime();
	timeLeft = Math.round((endDate-startDate)/1000);
	if(timeLeft<0) timeLeft=0;
	days = Math.floor(timeLeft/86400);
	timeLeft %= 86400;
	hours = Math.floor(timeLeft/3600);
	timeLeft %= 3600;
	minutes = Math.floor(timeLeft/60);
	timeLeft %= 60;
	seconds = timeLeft;
	if(days<10) days = '0'+days;
	if(hours<10) hours = '0'+hours;
	if(minutes<10) minutes = '0'+minutes;
	if(seconds<10) seconds = '0'+seconds;
	document.getElementById('clockDay').innerHTML=days;
	document.getElementById('clockHour').innerHTML=hours;
	document.getElementById('clockMin').innerHTML=minutes;
	document.getElementById('clockSec').innerHTML=seconds;
	setTimeout('countDown()',1000);
}
function newClock(){
	document.write('<style>#countClock td{ background:'+backColor+' !important; font-family:'+fontFamily+' !important; font-size:'+fontSize+'px !important; color:'+foreColor+' !important; font-weight:bold !important; width auto !important; height:auto !important; }</style>');
	document.write('<table cellpadding="0" cellspacing="0" border="0" id="countClock"><tr><td id="clockDay"></td><td>:</td><td id="clockHour"></td><td>:</td><td id="clockMin"></td><td>:</td><td id="clockSec"></td></tr></table>');
	countDown();
}
