function MakeArray(n) {
	this.length = n
	return this
}
dayNames = new MakeArray(7);
dayNames[1] = "日";
dayNames[2] = "一";
dayNames[3] = "二";
dayNames[4] = "三";
dayNames[5] = "四";
dayNames[6] = "五";
dayNames[7] = "六";

function customDateString(oneDate) {
	var theDay = dayNames[oneDate.getDay() + 1];
	var theMonth = oneDate.getMonth() + 1;
	var theYear = oneDate.getYear(); 
	if  (theYear < 1900) { theYear = theYear + 1900};
	var today = theYear + "年" + theMonth + "月" + oneDate.getDate() + "日 " + "星期" + theDay;
	return today;
}

document.write("<span style=font-size:9pt;color:#ff0000;>" + customDateString(new Date()) + "</span>")