function ShowTime(){
now=new Date()
tmonth=now.getMonth()+1
thour=((now.getHours() < 10) ? "0" : "")+now.getHours()
tminutes=((now.getMinutes() < 10) ? "0" : "")+now.getMinutes()
tseconds=((now.getSeconds() < 10) ? "0" : "")+now.getSeconds()
gweek=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
hhp=gweek[now.getDay()]
document.getElementById("time").innerHTML=now.getYear()+"年"+tmonth+"月"+now.getDate()+"日"+" "+hhp+" " +thour+":"+tminutes+":"+tseconds
//document.getElementById("time").innerHTML=now.getYear()+"年"+tmonth+"月"+now.getDate()+"日"+" "+hhp
setTimeout("ShowTime()",100)
}
ShowTime();

