monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));

function writedoc() {

lastmonth=thismonth-1;
//document.write("<a href=\"cal_" + lastmonth + ".htm\"><img src=leftArrow.gif></a>");

nextmonth=thismonth+1;
//document.write("<a href=\"cal_" + nextmonth + ".htm\"><img src=rightArrow.gif></a>");

document.write("<table border=1 bgcolor=white ");
//document.write("bordercolor=black><font color=black>");
document.write("bordercolor=black>");
if (thismonth > 0) {
 document.write("<tr><td colspan=7><center><a href=\"cal_" + lastmonth + ".htm\"><img border=0 src=leftArrow.gif></a> ");
}
else {
 document.write("<tr><td colspan=7><center><img src=leftArrow.gif> ");
}
document.write("<strong><font face=Arial>" + monthnames[thismonth] + " " + thisyear + "</strong></font> ");
if (thismonth < 11) {
 document.write("<a href=\"cal_" + nextmonth + ".htm\"><img border=0 src=rightArrow.gif></a></center></td></tr>");
}
else {
 document.write("<img border=0 src=rightArrow.gif></center></td></tr>");
}
document.write("<tr>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Sunday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Monday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Tuesday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Wednesday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Thursday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Friday</b></font></td>");
document.write("<td width=85 align=center bgcolor=#2663e2><font face=Arial color=#ffffff size=2><b>Saturday</b></font></td>"); 
document.write("</tr>");
document.write("<tr height=45>");

for (s=0;s<startspaces;s++) {
 document.write("<td> </td>");
}

count=1;
while (count <= monthdays[thismonth]) {
 for (b = startspaces;b<7;b++) {
//  document.write("<td valign=top>");

  if (count==thisdate && thismonth===todayDate.getMonth()) {
   // set background color of current date
   document.write("<td valign=top bgcolor='c0c0c0'>");
   // set font color of current date
   document.write("<font color='FF0000'>");
  }
  else {
   document.write("<td valign=top>");
  }

  if (count <= monthdays[thismonth]) {
   document.write("<font face=Arial size=2><b>" + count + "</b></font><br>");
   if (daylink[count] != "") {document.write("<font face=Arial size=1><a href=\"" + daylink[count] + "\">" + daydescr[count] + "</a></font>"); }
   if (more[count] == "1") {document.write("<br><font face=Arial size=1><a href=\"" + daylink1[count] + "\">" + daydescr1[count] + "</a></font>"); }
  }
  else {
   document.write(" ");
  }

  if (count==thisdate) {
   document.write("</font>");
  }

  document.write("</td>");
  count++;
 }

 document.write("</tr>");
 document.write("<tr height=45>");
 startspaces=0;
}
document.write("</table></p>");

}