var stop=0;
var timer1;
function trans(str)
{switch(str)           
{case 1:return "一";
case 2:return "二";
case 3:return "三";
case 4:return "四";
case 5:return "五";
case 6:return "六";
case 0:return "日";
}
}
function che(nu)
{
if (nu<10)
return "0"+nu;
else
return nu;
}

function showtime()           
{ if(stop==0){
if (!document.layers && !document.all)
 return;

a=new Date();  
clock="星期"+trans(a.getDay())+" "+a.getFullYear()+"年"+(a.getMonth()+1)+"月"+a.getDate()+"日"+" "+a.getHours()+"时"+a.getMinutes()+"分";
if (document.layers) 
{document.layers.show.document.write(clock)}   
else if (document.all)     
{
week.innerHTML=clock;
//  document.getElementById('week').value =clock;
}          
timer1=setTimeout("showtime()",10000);
 }   
}



