

<!--

/*

 Java Script Calendar is a small script for web pages which displays current Day of the 

week, Month, Date and Year along with Holidays notification. Just like this working demo 

below. It will work with Netscape 2++, Microsoft 3++ and Opera 3++ web browsers.



                                    Tuesday, November 24, 1998    



About 70 holidays from all over the world are displayed by Calendar (if you know other ones, 

let me know, I will add them). It even calculates Easter Sunday date! To see how it works 

change the date on your computer to January, 1, for example and re-load the page.



Installation is very simple. Just copy the script below, everything between SCRIPT and SCRIPT 

tags (including tags themselves) and paste in the place you want it to appear on your page. 

You can customize the way it looks by changing document.write function arguments just after 

month names definitions. Java Script Calendar is free without any limitations. 

Copyright © Eugene Vassiltsov. But please, let me know if you will use it.

*/



 calendar = new Date();

 day = calendar.getDay();

 month = calendar.getMonth();

 date = calendar.getDate();

 year = calendar.getYear();

 if (year < 1000)

 year+=1900

 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 ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

 var monthname = 

 new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );

 document.write("<B><Font Color='#F57700' Face=verdana,arial size=2>");

 document.write(dayname[day] + "<BR>");

 document.write(monthname[month] + " ");

 if (date< 10) document.write("0" + date + ", ");

         else document.write(date + ", ");

 document.write(year + "    <font color=F57700>");

 // January

 if ((month == 0) && (date == 1)) document.write("<BR>New Year's Day");

 if ((month == 0) && (date == 31)) document.write("<BR>(9 months til Halloween)");

 // February

 if ((month == 1) && (date == 28)) document.write("<BR>(8 months til Halloween)");

 if ((month == 1) && (date == 29)) document.write("<BR>Leap Day");

 // March

 if ((month == 2) && (date == 17)) document.write("<BR>St. Patrick's Day");

 if ((month == 2) && (date == 23)) document.write("<BR>Vernal Equinox");

 if ((month == 2) && (date == 31)) document.write("<BR>(7 months til Halloween)");

 // April

 if ((month == 3) && (date == 1)) document.write("<BR>April Fools' Day");

 if ((month == 3) && (date == 22)) document.write("<BR>Earth Day");

 if ((month == 3) && (date == 30)) document.write("<BR>(6 months til Halloween)");

 // May

 if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write("<BR>Mother's Day");

 if ((month == 4) && (date == 31)) document.write("<BR>(5 months til Halloween)");

 // June

 if ((month == 5) && (date == 21)) document.write("<BR>Summer Solstice");

 if ((month == 5) && (date == 30)) document.write("<BR>(4 months til Halloween)");

 // July

 //if ((month == 6) && (date == 5)) document.write("<BR>Me And Joey's Day");

 if ((month == 6) && (date == 31)) document.write("<BR>(3 months til Halloween)");

 // August

 if ((month == 7) && (date == 31)) document.write("<BR>(2 months til Halloween)");

 // September

 if ((month == 8) && (date == 21)) document.write("<BR>Autumnal Equinox");

 if ((month == 8) && (date == 30)) document.write("<BR>(Next month is Halloween!)");

 // October

 if ((month == 9) && (date < 31)) document.write("<BR>Halloween is coming!");

 if ((month == 9) && (date == 31)) document.write("<BR><B>H a l l o w e e n</B>");

 // November

 if ((month == 10) && (date == 1)) document.write("<BR>All Saints Day");

 if ((month == 10) && (date == 30)) document.write("<BR>(11 months til Halloween)");

 // December

 if ((month == 11) && (date == 21)) document.write("<BR>Winter Solstice");

 if ((month == 11) && (date == 31)) document.write("<BR>(10 months til Halloween)");

 document.write("</Font></B><br>");

//-->

