function createCalendar(mm, yy)
{
currentDate = new Date()
with (currentDate) 
{
yy = getYear()
mm = getMonth()
dd = getDay()
cc = getDate()
mx = mm+1
cx = cc
hh = 0
}
var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var holidy = new Array("just an ordinary", 
"New Year's",
"Joculating",
"Burns Night",
"Going to Ground",
"Groundhog", 
"Hootie-hoo", 
"Confess to Brutus",
"St Patrick's", 
"Spring Equinox", 
"Boaghalta", 
"Doris", 
"No Housework",
"Oranges are Round",  
"May", 
"No Sox", 
"Slug Return", 
"Beltaine", 
"Fudge", 
"The Brewmaster's", 
"MidSummer's", 
"Aptly Named", 
"Take your Webmaster to lunch", 
"Chanter's", 
"Don't step on a bee", 
"Lughnassadh", 
"Fall Equinox", 
"Librarian's", 
"Halloween", 
"Dead", 
"Franksgiving", 
"St Niel's",
"St Mealltairachd's",
"Buddhamas", 
"Midwinter's", 
"Christmas", 
"Boxing"); 
var holid2 = new Array("nothing special happened", 
" ", 
"tell a joke", 
"celebrate haggis", 
"until 3rd Thursday following ", 
"this place is a hole in the ground", 
"yell Hoodie-hoo outside",
"tell your worst enemy what you think of them", 
" ", 
" ", 
"anniversary of the great battle", 
" ", 
"today at least it's official", 
" ", 
" ", 
"reduce your laundry", 
"don't go out barefoot", 
" ", 
"yell it at the top of your lungs", 
" ", 
" ", 
" ", 
" ", 
" ", 
"was you ever stung by a dead bee?", 
" ", 
" ", 
" ", 
" ", 
"remember Jerry Garcia", 
"remember when even the president couldn't start the Christmas season before Thanksgiving?", 
"drink a stout", 
"(pronounced Milo)", 
"decorate the tree of life", 
" ", 
" ", 
" ");
if (mx == 1 && cx == 1) {hh = 1};
if (mx == 1 && cx == 21) {hh = 2};
if (mx == 1 && cx == 25) {hh = 3};
if (mx == 2 && cx == 1) {hh = 4};
if (mx == 2 && cx == 2) {hh = 5};
if (mx == 2 && cx == 20) {hh = 6};
if (mx == 3 && cx == 15) {hh = 7};
if (mx == 3 && cx == 17) {hh = 8};
if (mx == 3 && cx == 21) {hh = 9};
if (mx == 4 && cx == 1) {hh = 10};
if (mx == 4 && cx == 3) {hh = 11};
if (mx == 4 && cx == 7) {hh = 12};
if (mx == 4 && cx == 16) {hh = 13};
if (mx == 5 && cx == 1) {hh = 14};
if (mx == 5 && cx == 8) {hh = 15};
if (mx == 5 && cx == 28) {hh = 16};
if (mx == 5 && cx == 31) {hh = 17};
if (mx == 6 && cx == 2) {hh = 18};
if (mx == 6 && cx == 17) {hh = 19};
if (mx == 6 && cx == 21) {hh = 20};
if (mx == 7 && cx == 4) {hh = 21};
if (mx == 7 && cx == 6) {hh = 22};
if (mx == 7 && cx == 9) {hh = 23};
if (mx == 7 && cx == 10) {hh = 24};
if (mx == 8 && cx == 1) {hh = 25};
if (mx == 9 && cx == 21) {hh = 26};
if (mx == 10 && cx== 10) {hh = 27};
if (mx == 10 && cx == 31) {hh = 28};
if (mx == 11 && cx == 1) {hh = 29};
if (mx == 11 && cx == 18) {hh = 30};
if (mx == 12 && cx == 1) {hh = 31};
if (mx == 12 && cx == 17) {hh = 32};
if (mx == 12 && cx == 18) {hh = 33};
if (mx == 12 && cx == 21) {hh = 34};
if (mx == 12 && cx == 25) {hh = 35};
if (mx == 12 && cx == 26) {hh = 36};
document.write('<table border="2" width="100%" bgcolor="white" bordercolor="black"><tbody><tr><td align=center><font "color=black" face="verdana"><b>');
document.write(days[dd]+' '+yy+'-'+month[mm]+'-'+cc+'<br />');
document.write('Today is '+ holidy[hh]+ ' day<br />');
document.write('<font size=2>'+holid2[hh]+'</font>');
document.write(' </b></font></td></tr></tbody></table>');
}
createCalendar()
