function initArray(){
  this.length=initArray.arguments.length
  for(var i=0;i<this.length;i++)
    this[i+1]=initArray.arguments[i]
}


    today=new Date();
    var d=new initArray("<font color=red>星期日</font>","星期一","星期二","星期三","星期四","星期五","星期六"); 
    document.write(today.getYear(),"年",today.getMonth()+1,"月<BR><B><SPAN CLASS=eng>",today.getDate(),"</SPAN></B><SPAN CLASS=w1>日</SPAN><BR><SPAN CLASS=w1>",d[today.getDay()+1],"</span>"); 
