today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "<FONT COLOR=#000000>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=#000000>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=#000000>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
timeValue += (hours >= 12) ? "<FONT COLOR=#000000>pm</FONT>" : "<FONT COLOR=#000000>am</FONT>";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  }
var d=new initArray("<font color=#000000>星期日","<font color=#000000>星期一","<font color=#000000>星期二","<font color=#000000>星期三","<font color=#000000>星期四","<font color=#000000>星期五","<font color=#000000>星期六"); document.write("<font color=#000000>","&nbsp;" ,today.getYear(),"<font color=#000000>年 ","<font color=#000000>",today.getMonth()+1,"<font color=#000000>月","<font color=#000000>",today.getDate(),"<font color=#000000>日</FONT>&nbsp;  ",d[today.getDay()+1]); 