calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var monthname = 
new Array ("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月" );
document.write("<font color=0000ff>"+year +"年");
document.write(monthname[month]);
document.write(date + "日"+"&nbsp;");
document.write(dayname[day]+"&nbsp;"+"</font>");

// January(1月份节日，以下同。)
document.write("<font color=ff0000><b>");
if ((month == 0) && (date == 1)) document.write("祝您新年愉快，如意吉祥！");
if ((month == 0) && (date == 2)) document.write("祝您新年愉快，身体健康！");
if ((month == 0) && (date == 3)) document.write("祝您新年愉快，工作顺利！");
if ((month == 0) && (date == 4)) document.write("祝您新年上班愉快步步高升！");
if ((month == 1) && (date == 14)) document.write("祝您情人节愉快心想事成！");

if ((month == 1) && (date == 13)) document.write("祝您新年除夕圆满如意吉祥！");
if ((month == 1) && (date == 14)) document.write("祝您新年愉快，吉祥如意！");
if ((month == 1) && (date == 15)) document.write("祝您新年愉快，红灯高照！");
if ((month == 1) && (date == 16)) document.write("祝您新年愉快，大吉大利！");
if ((month == 1) && (date == 17)) document.write("祝您新年愉快，大展宏图！");
if ((month == 1) && (date == 18)) document.write("祝您新年愉快，万事顺心！");
if ((month == 1) && (date == 19)) document.write("祝您新年愉快，心想事成！");
if ((month == 1) && (date == 20)) document.write("祝您新年愉快，工作顺利！");
//if ((month == 1) && (date == 21)) document.write("祝您新年上班愉快步步高升！");

if ((month == 2) && (date == 8)) document.write("祝妇女朋友节日愉快身心健康！");
if ((month == 4) && (date == 1)) document.write("祝朋友们劳动节愉快身体健康！");
if ((month == 4) && (date == 2)) document.write("祝朋友们五一假期轻松愉快！");
if ((month == 4) && (date == 3)) document.write("祝朋友们五一假期轻松愉快！");
if ((month == 4) && (date == 4)) document.write("祝青年朋友们五四节日愉快！");
if ((month == 4) && (date == 5)) document.write("祝朋友们收假上班轻松愉快！");
if ((month == 5) && (date == 1)) document.write("祝少年朋友节日愉快健康成长！");
if ((month == 6) && (date == 1)) document.write("祝党的生日快乐，永葆先进！");
if ((month == 7) && (date == 1)) document.write("祝朋友们建军节好！");
if ((month == 8) && (date == 10)) document.write("祝广大教师节日愉快！");
if ((month == 8) && (date == 29)) document.write("祝朋友们国庆长假愉快！");
if ((month == 8) && (date == 30)) document.write("祝朋友们国庆长假愉快！");
if ((month == 9) && (date == 1)) document.write("祝朋友们国庆节愉快！");
if ((month == 9) && (date == 2)) document.write("祝朋友们国庆长假愉快！");
if ((month == 9) && (date == 3)) document.write("祝朋友们国庆假期轻松愉快！");
if ((month == 9) && (date == 4)) document.write("祝朋友们国庆假期轻松愉快！");
if ((month == 9) && (date == 5)) document.write("祝朋友们国庆假期轻松愉快！");
if ((month == 9) && (date == 6)) document.write("祝朋友们国庆假期轻松愉快！");
if ((month == 9) && (date == 7)) document.write("祝朋友们国庆假期轻松愉快！");
if ((month == 9) && (date == 8)) document.write("祝朋友们长假后上班愉快！");
if ((month == 11) && (date == 24)) document.write("祝您圣诞夜愉快，平安顺利！"); 
if ((month == 11) && (date == 25)) document.write("祝您圣诞节愉快，一生平安！"); 
if ((month == 11) && (date == 31)) document.write("祝您新年愉快，万事如意！");

document.write("</b></font>&nbsp;");
