document.write("<TR><TD background=images/logo_bei.jpg height=80>")
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100% border=0><TBODY>")
document.write("<TR><TD width=500><IMG src=images/logo.jpg border=0></TD><TD align=right valign=bottom>")
function date(id)
{
today=new Date();
week_=new Array();
week_[0]="星期日";
week_[1]="星期一";
week_[2]="星期二";
week_[3]="星期三";
week_[4]="星期四";
week_[5]="星期五";
week_[6]="星期六";
week=week_[today.getDay()];
year=today.getYear();
month=today.getMonth()+1;
day=today.getDate();
hour=today.getHours();
minute=today.getMinutes();
second=today.getSeconds();
if (id=="week"){
               return week}
   else {
      if (id=="year"){return year+'年'}
         else {
            if (id=="month"){return month+'月'}
               else {
                  if (id=="day"){return day+'日'}
                      else {
                        if (id=="hour"){return hour}
                           else {
                              if (id=="minute"){return minute}
                                 else {
                                         if (id=="second"){return second;}
                                      }
                                 }
                            }
                     }
                }
          }

}

document.write(date("year"));
document.write(date("month"));

document.write(date("day"));

document.write(date("week"));
document.write("<img src=images/shim.gif width=10 height=1>");
hou=date("hour");
if (hou<="11") {document.write("上午好");}
if (hou<="13"){if (hou>"11") {document.write("中午好");}}
if (hou<="18"){if (hou>"13") {document.write("下午好");}}
if (hou>"18")  {document.write("晚上好");}
document.write("<br><br></TD></TR></TBODY></TABLE>")
document.write("</TD></TR>")