function distime() 
{ 
week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六") 
t=new Date() 
ty=t.getFullYear() 
tm=t.getMonth()+1 
td=t.getDate() 
tw=week[t.getDay()] 
th=t.getHours() 
if(th<10)th="0"+th 
tmi=t.getMinutes() 
if(tmi<10)tmi="0"+tmi 
ts=t.getSeconds() 
if(ts<10)ts="0"+ts 
dis=ty+"年"+tm+"月"+td+"日  "+th+"时"+tmi+"分"+ts+"秒  "+tw 
document.getElementById("dt").innerHTML=dis 
setTimeout("distime()",1000) 
} 
