Site hosted by Angelfire.com: Build your free website today!
'; htmlString += '
' htmlString += '' htmlString += '' htmlString += ' ' htmlString += '' htmlString += '' htmlString += ' ' htmlString += ' ' htmlString += ' ' htmlString += ' ' htmlString += ' ' htmlString += ' ' htmlString += ' ' htmlString += '' var startedNumbering = false; var dayNum = 0; for (var i=0; i<6; i++) // now add HTML code for all the day cells { for (var j=0; j<7; j++) { if (j == 0) htmlString += calRowStart; htmlString += dayCellStart if ((j == theFirstDayName) || (startedNumbering == true)) { dayNum++; if (dayNum <= theMonthLength) startedNumbering = true; else startedNumbering = false; } if (startedNumbering) // here's where the event flags are added { htmlString += dayNum; if (document.calForm.musicChk.checked) if (isMusicEvent(dayNum)) htmlString += musicEvent(dayNum); if (document.calForm.danceChk.checked) if (isDanceEvent(dayNum)) htmlString += danceEvent(dayNum); if (document.calForm.theaterChk.checked) if (isTheaterEvent(dayNum)) htmlString += theaterEvent(dayNum); if (document.calForm.cinemaChk.checked) if (isCinemaEvent(dayNum)) htmlString += cinemaEvent(dayNum); } htmlString += dayCellEnd; if (j == 6) htmlString += calRowEnd; } } htmlString += '
' htmlString += ' ' + theMonthName + ", " + theYear + '
' htmlString += '
' htmlString += ' Sun
' htmlString += '
' htmlString += ' Mon
' htmlString += '
' htmlString += ' Tue
' htmlString += '
' htmlString += ' Wed
' htmlString += '
' htmlString += 'Thu
' htmlString += '
' htmlString += ' Fri
' htmlString += '
' htmlString += ' Sat
' htmlString += '
'; // end htmlString 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 -->
   
Event Types
Music
Dance
Theater
Cinema