| '
htmlString += ' ' + theMonthName + ", " + theYear + ' ' htmlString += ' | '
htmlString += '||||||
| '
htmlString += ' Sun ' htmlString += ' | '
htmlString += ' '
htmlString += ' Mon ' htmlString += ' | '
htmlString += ' '
htmlString += ' Tue ' htmlString += ' | '
htmlString += ' '
htmlString += ' Wed ' htmlString += ' | '
htmlString += ' '
htmlString += 'Thu ' htmlString += ' | '
htmlString += ' '
htmlString += ' Fri ' htmlString += ' | '
htmlString += ' '
htmlString += ' Sat ' htmlString += ' | '
htmlString += '
'; parent.calFrame.document.write(htmlString); // write htmlString dynamically parent.calFrame.document.close(); // to calFrame // load appropriate HTML file in the textFrame frame if ((musicEvents[getBaseMonthNum()][0] == null) && (danceEvents[getBaseMonthNum()][0] == null) && (theaterEvents[getBaseMonthNum()][0] == null) && (cinemaEvents[getBaseMonthNum()][0] == null)) { parent.textFrame.location = "emptymon.htm"; // load "No events ..." file } else // load current month's mmmyyyy.htm file { var len = parent.textFrame.location.href.length; if (parent.textFrame.location.href.substring(len-11, len) != monthFileNames[getBaseMonthNum()]) parent.textFrame.location = monthFileNames[getBaseMonthNum()]; } } function getBaseMonthNum() // calc month num with respect to baseMonth/baseYear { yearDiff = theYear - baseYear; var monthDiff = theMonthNum - baseMonth; return ((yearDiff * 12) + monthDiff); } function getNumFebDays() // calc num days in February { if ((theYear % 4 == 0 && theYear % 100 != 0) || (theYear % 400 == 0)) return 29 else return 28 } function drawPrevMonth() // display the previous calendar month { if (theMonthNum == 0) { if (theYear == 1998) { alert("Sorry: We began operation in 1998 ..."); return; } else { theYear--; } theMonthNum = 11; } else { theMonthNum--; } var theDate = new Date(theYear, theMonthNum, 1); theDate = new Date(theYear, theMonthNum, 1); setDateVals(theDate); drawCal(); } function drawNextMonth() // display the next calendar month { if (theMonthNum == 11) { if (theYear == 2000) { alert("Sorry: We haven't yet scheduled beyond 2000 ..."); return; } else { theYear++; } theMonthNum = 0; } else { theMonthNum++; } theDate = new Date(theYear, theMonthNum, 1); setDateVals(theDate); drawCal(); } // end JS hide -->