// JavaScript Document

var timerID = null;
var timerRunning = false;

function stopClock () {
		
	if(timerRunning) 
	clearTimeout(timerID);
	timerRunning = false;
	
}

function showTime () {
	
	var now = new Date();
	var year = now.getYear();
	var month = now.getMonth() + 1;
	var date = now.getDate();
	
	var days = 733806 - year*365 - month*31 - date + 2-3;//µ¹¼ÆÊ±ËãÊõ
	var hours = 24 - now.getHours();
	var minutes = 60 - now.getMinutes();
	var seconds = 60 - now.getSeconds();
	//var day = now.getDay();
	var timeValue = "";
	
	timeValue += "<strong><font color='#FF0000' size='5'>" + days + "</font>Ìì " + hours;
	timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds + "</strong>";
	
	document.all.timeshow.innerHTML = timeValue;
	timerID = setTimeout("showTime()", 1000);
	timerRunning = false;
	 
}