<!--
tomocs = new Date();
day = tomocs.getDay();
month =tomocs.getMonth();
date = tomocs.getDate();
year = tomocs.getYear();
hour = tomocs.getHours();
min = tomocs.getMinutes();
sec = tomocs.getSeconds()
var msg1="";msg3=""

if(hour < 6){msg1="凌晨"}
else if (hour < 8){msg1="早上"}
else if (hour < 11){msg1="上午"}
else if (hour < 13){msg1="中午"}
else if (hour < 17){msg1="下午"}
else if (hour < 19){msg1="傍晚"}
else if (hour < 22){msg1="晚上"}
else {msg1="深夜"}


if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
var dayname = new Array ("<font color=red>星期日</font>", "星期一", "星期二", "星期三", "星期四", "星期五", "<font color=red>星期六</font>");
var monthname = 
new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
document.write(""+year +"年");
document.write(monthname[month]);
document.write(date + "日 ");
document.write(dayname[day]+" "+china_time+" <u>");

if(navigator.appName == "Netscape") {
document.write('<layer id="clock"></layer>');
}
if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<span id="clock"></span>');
}
var col = ":";
var com = ",";
var secc = sec - tomocs.getSeconds();
var ff2 = 1 ;
var ff3 = 1 ;
var ff4 = 0 ;
function LiveTime(){
	var tomocs= new Date();
	sec = (tomocs.getSeconds()+ secc)%60
	if(sec<0)sec=60+sec;
	if(ff4==0 && (sec == 00 || sec == 60)){sec = 0;min++;ff3=1;ff4=1;}
	if(sec != 00 && sec != 60)ff4=0;
	if(min == 60){min=00;hour++;ff2=1}
	if(hour == 24){hour=0;}
	//if(sec==0 && min==0 && hour==0){window.location=("index.asp");}
	if (hour<=9&&ff2==1){ff2=0; hour="0"+hour;}
	if (sec<=9) sec="0"+sec;
	if (min<=9&&ff3==1) {ff3=0; min="0"+min;}
	if(navigator.appName == "Netscape") {
		document.clock.document.write(hour+col+min+col+sec);
		document.clock.document.close();
	}
	if (navigator.appVersion.indexOf("MSIE") != -1){
		clock.innerHTML = hour+col+min+col+sec;
	}
}
setInterval("LiveTime()",1000);
document.write("</u> &nbsp;");
document.write(" <font color=blue>"+msg1+"好！</font>")
//-->