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=OOOOO>"+year +"年");
document.write(monthname[month]);
document.write(date + "日"+" ");
document.write(dayname[day]+" "+"</font>");

// January(1月份节日，以下同。)
if ((month == 0) && (date == 1)) document.write("今天是元旦");
if ((month == 1) && (date == 7)) document.write("今天是“二.七”纪念日");
if ((month == 1) && (date == 14)) document.write("今天是情人节");
if ((month == 1) && (date == 24)) document.write("今天是第三世界青年日");
if ((month == 2) && (date == 1)) document.write("今天是国际海豹节");
if ((month == 2) && (date == 5)) document.write("今天是学雷锋纪念日");
if ((month == 2) && (date == 8)) document.write("今天是“三.八”国际妇女节"); 
if ((month == 2) && (date == 12)) document.write("今天是植树节"); 
if ((month == 2) && (date == 14)) document.write("今天是国际警察日"); 
if ((month == 2) && (date == 15)) document.write("今天是国际消费者权益日"); 
if ((month == 2) && (date == 21)) document.write("今天是世界森林日、消除种族歧视日"); 
if ((month == 2) && (date == 22)) document.write("今天是世界水日");
if ((month == 2) && (date == 23)) document.write("今天是世界气象日");  
if ((month == 3) && (date == 1)) document.write("今天是愚人节"); 
if ((month == 3) && (date == 7)) document.write("今天是世界卫生日、世界无烟日");
if ((month == 3) && (date == 22)) document.write("今天是世界地球日");  
if ((month == 3) && (date == 24)) document.write("今天是世界青年团结日");
if ((month == 3) && (date == 25)) document.write("今天是世界儿童日");
if ((month == 4) && (date == 1)) document.write("今天是国际劳动节");   
if ((month == 4) && (date == 4)) document.write("今天是青年节");
if ((month == 4) && (date == 8)) document.write("今天是世界红十字日");
if ((month == 4) && (date == 12)) document.write("今天是国际护士节");
if ((month == 4) && (date == 17)) document.write("今天是世界电信日");
if ((month == 4) && (date == 30)) document.write("今天是“五卅”运动纪念日");
if ((month == 4) && (date == 31)) document.write("今天是世界无烟草日");
if ((month == 5) && (date == 1)) document.write("今天是国际儿童节");
if ((month == 5) && (date == 4)) document.write("今天是国际日");
if ((month == 5) && (date == 5)) document.write("今天是国际环境日");
if ((month == 5) && (date == 23)) document.write("今天是国际奥林匹克日");
if ((month == 5) && (date == 25)) document.write("今天是土地日");
if ((month == 5) && (date == 27)) document.write("今天是国际禁毒日");
if ((month == 6) && (date == 1)) document.write("今天是中国共产党成立纪念日、国际建筑日");
if ((month == 6) && (date == 3)) document.write("今天是国际合作节");
if ((month == 7) && (date == 1)) document.write("今天是中国人民解放军建军节");
if ((month == 8) && (date == 10)) document.write("今天是教师节");
if ((month == 8) && (date == 20)) document.write("今天是爱牙日");
if ((month == 9) && (date == 1)) document.write("今天是中华人民共和国国庆节");
if ((month == 9) && (date == 2)) document.write("今天是国际和平斗争日");
if ((month == 9) && (date == 9)) document.write("今天是世界邮政日");
if ((month == 9) && (date == 14)) document.write("今天是世界标准日");
if ((month == 9) && (date == 15)) document.write("今天是国际盲人节");
if ((month == 9) && (date == 16)) document.write("今天是世界粮食日");
if ((month == 9) && (date == 24)) document.write("今天是联合国日");
if ((month == 9) && (date == 31)) document.write("今天是世界勤俭日");
if ((month == 10) && (date == 1)) document.write("今天是万圣节");
if ((month == 10) && (date == 17)) document.write("今天是国际学生日");
if ((month == 11) && (date == 1)) document.write("今天是世界爱滋病日");
if ((month == 11) && (date == 5)) document.write("今天是社会经济发展国际自愿人员日");
if ((month == 11) && (date == 10)) document.write("今天是世界人权日、诺贝尔日");
if ((month == 11) && (date == 25)) document.write("今天是圣诞节");

document.write("<br></font>");