﻿document.writeln("<script> ");
document.writeln("function Year_Month(){ ");
document.writeln("var now = new Date(); ");
document.writeln("var yy = now.getYear(); ");
document.writeln("var mm = now.getMonth()+1; ");
document.writeln("var cl = \'<font color=\"#000000\">\'; ");
document.writeln("return(cl +yy + \'年\' + mm + \'月<\/font>\'); ");
document.writeln("}function Date_of_Today(){ ");
document.writeln("var now = new Date(); ");
document.writeln("var cl = \'<font color=\"#000000\"><b>\'; ");
document.writeln("if (now.getDay() == 0) cl = \'<font color=\"#000000\"><b>\'; ");
document.writeln("if (now.getDay() == 6) cl = \'<font color=\"#000000\"><b>\'; ");
document.writeln("return(cl +now.getDate() + \'<\/font><\/b>\'); ");
document.writeln("}function Day_of_Today(){ ");
document.writeln("var day = new Array(); ");
document.writeln("day[0] = \"星期日\"; ");
document.writeln("day[1] = \"星期一\"; ");
document.writeln("day[2] = \"星期二\"; ");
document.writeln("day[3] = \"星期三\"; ");
document.writeln("day[4] = \"星期四\"; ");
document.writeln("day[5] = \"星期五\"; ");
document.writeln("day[6] = \"星期六\"; ");
document.writeln("var now = new Date(); ");
document.writeln("var cl = \'<font color=\"#000000\">\'; ");
document.writeln("if (now.getDay() == 0) cl = \'<font color=\"#000000\">\'; ");
document.writeln("if (now.getDay() == 6) cl = \'<font color=\"#000000\">\'; ");
document.writeln(" ");
document.writeln("return(cl +day[now.getDay()] + \'<\/font>\'); ");
document.writeln("}function CurentTime(){ ");
document.writeln("var now = new Date(); ");
document.writeln("var hh = now.getHours(); ");
document.writeln("var mm = now.getMinutes(); ");
document.writeln("var ss = now.getTime() % 60000; ");
document.writeln("ss = (ss - (ss % 1000)) \/ 1000; ");
document.writeln("var clock = hh+\':\'; ");
document.writeln("if (mm < 10) clock += \'0\'; ");
document.writeln("clock += mm+\':\'; ");
document.writeln("if (ss < 10) clock += \'0\'; ");
document.writeln("clock += ss; ");
document.writeln("return(clock); ");
document.writeln("}function refreshCalendarClock(){ ");
document.writeln("document.all.calendarClock1.innerHTML = Year_Month(); ");
document.writeln("document.all.calendarClock2.innerHTML = Date_of_Today(); ");
document.writeln("document.all.calendarClock3.innerHTML = Day_of_Today(); ");
document.writeln("document.all.calendarClock4.innerHTML = CurentTime(); ");
document.writeln("}");
document.writeln("document.write(\'<table border=\"0\" bordercolor=\"#000000\" cellpadding=\"0\" cellspacing=\"0\" width=\"320\" height=\"67\">\'); ");
document.writeln("document.write(\'<tr><td align=\"center\" width=\"100%\" height=\"100%\" >\'); ");
document.writeln("document.write(\'<font id=\"calendarClock1\" style=\"font-family:宋体;font-size:16pt;line-height:120%\"><\/font>\'); ");
document.writeln("document.write(\'<font id=\"calendarClock2\" style=\"font-family:宋体;font-size:16pt;line-height:120%\"><\/font>日&nbsp;\'); ");
document.writeln("document.write(\'<font id=\"calendarClock3\" style=\"font-family:宋体;font-size:16pt;line-height:120%\"><\/font>&nbsp;\'); ");
document.writeln("document.write(\'<font id=\"calendarClock4\" style=\"font-family:宋体;font-size:16pt;line-height:120%\"><\/font>\'); ");
document.writeln("document.write(\'<\/td><\/tr><\/table>\'); ");
document.writeln("refreshCalendarClock() ");
document.writeln("setInterval(\'refreshCalendarClock()\',1000); ");
document.writeln("<\/script>");

