var firstOldYearMonth      = 8;

var birthday      = "Birthday";
var anniversary   = "Anniversary";
var missionary    = "Missionary Emphasis";
var meeting       = "Meeting";

var todaysDate    = new Date;
var currentYear   = (navigator.appName == "Netscape") ? todaysDate.getYear() + 1900 : todaysDate.getYear();
var currentMonth  = todaysDate.getMonth()+1;
var currentDate   = todaysDate.getDate();
var currentDay    = todaysDate.getDay();

var months        =  Array ("nullMonth", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var numberOfDaysIn=  Array ("0", "31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31");
var days          =  Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var events        =  Array ("bothEvents", "justBirthdays", "justAnniversaries");
var groups        =  Array ("bothGroups", "justFamily", "justFriends");

var theLastName   = 0;
var theFirstName  = 1;
var theEvent      = 2;
var theMonth      = 3;
var theDate       = 4;
var theYear       = 5;
var moreInfo      = 6;

var addresses     = true;
var noAddresses   = false;

birthdaysOn       = true;
birthdaysOff      = false;

var asCalendar    = true;
var asTable       = false;

var churchPhone   = '(215) 563-9192';

function toMailLink () {

 var theLink = '<A Href="mailto:' + this + '@HighwayTabernacle.org';

 if (toMailLink.arguments.length)
    theLink += '?Subject=' + toMailLink.arguments[0];

 theLink += '">' + this + '@HighwayTabernacle.org</A>';

 return (theLink);

}

function toSGALink () {

 var theLink = '<A Href="mailto:' + this + '@SGAPhilly.org';

 if (toSGALink.arguments.length)
    theLink += '?Subject=' + toSGALink.arguments[0];

 theLink += '">' + this + '@SGAPhilly.org</A>';

 return (theLink);

}
String.prototype.toMailLink = toMailLink;
String.prototype.toSGALink = toSGALink;

var theEvents     = Array ( //68

                        Array ('Fortenberry', 'Otis A.', birthday, 12, 10, '1962', ''),
                        Array ('Fortenberry/Wegner', 'Otis A. and Candace', anniversary, 5, 5, '2001', ''),
                        Array ('Wegner', 'Candace', birthday, 5, 23, '1969', ''),
                        Array ('Wegner Fortenberry', 'Alison Joy', birthday, 6, 22, '2003', ''),
                        Array ('Wegner', 'Otto', birthday, 6, 12, '1944', ''),
                        Array ('Wegner', 'Pat', birthday, 7, 8, '1943', ''),
                        Array ('Wegner', 'Otto and Pat', anniversary, 2, 11, '1967', ''),
                        Array ('Boswell', 'George', birthday, 6, 4, '1902', ''),
                        Array ('Bogdan', 'Florence', birthday, 6, 7, '1928', ''),
                      //  Array ('Bogdan', 'Stephen', birthday, 12, 20, '1927', ''),
                        Array ('Mon', 'Peggy and Eduardo', anniversary, 5, 29, '1976', ''),
                        Array ('Cabrera', 'Jennifer', birthday, 8, 17, '19??', ''),
                        Array ('Cabrera', 'Alfredo', birthday, 8, 11, '1970', ''),
                        Array ('Swanberg', 'Eric', birthday, 3, 4, '1979', ''),
                        Array ('Baez', 'Nastasha', birthday, 5, 22, '1988', ''),
                        Array ('Ortiz', 'Luis', birthday, 3, 22, '1992', ''),
                        Array ('Bent', 'Dawn', birthday, 4, 3, '1968', ''),
                        Array ('Ortiz', 'Alondra', birthday, 7, 7, '199?', ''),
                        Array ('Cabrera', 'Jennifer and Alfredo', anniversary, 8, 7, '1998', ''),
                        Array ('Croyle', 'David and Alissa', anniversary, 12, 15, '2001', ''),
                        Array ('Fisher', 'Dorothy', birthday, 7, 9, '1925', ''),
                        Array ('Jones', 'Tiny', birthday, 5, 11, '1949', ''),
                        Array ('Jones', 'Brianna', birthday, 9, 3, '1988', ''),
                        Array ('Jones', 'William', birthday, 1, 18, '19??', ''),
                        Array ('Jones', 'Tiny and Godfrey', anniversary, 7, 3, '1976', ''),
                        Array ('Johnson', 'Derrick and Jill', anniversary, 12, 12, '2004', ''),
                        Array ('Johnson', 'Derrick', birthday, 10, 6, '1980', ''),
                        Array ('Johnson', 'Jill', birthday, 11, 24, '1979', ''),
                        Array ('Miller', 'Scott', birthday, 9, 29, '1977', ''),
                        Array ('Kurian', 'Cizely', birthday, 3, 18, '1979', ''),
                   //     Array ('Pren', 'Karen', birthday, 1, 23, '1978', ''),
                  //      Array ('Ruse', 'Seth', birthday, 1, 23, '1980', ''),
                        Array ('Clocuh', 'Florence', birthday, 7, 14, '19??', ''),
                        Array ('Cooper', 'Dorothy', birthday, 1, 25, '19??', ''),
                        Array ('Bolton', 'Robert', birthday, 2, 26, '19??', ''),
                        Array ('Bustos', 'Liz', birthday, 1, 31, '1977', ''),
                        Array ('Menzies', 'Mark', birthday, 2, 9, '1972', ''),
                        Array ('Ashley', 'Tim & Mollie', anniversary, 5, 5, '2002', ''),
                        Array ('Ashley', 'Mollie', birthday, 4, 29, '1979', ''),
                        Array ('Wulin', 'Grace Ella', birthday, 3, 28, '2007', ''),
                        Array ('Bustos', 'Marco', birthday, 6, 12, '1972', ''),
                        Array ('Bustos', 'Micah Varghese', birthday, 12, 11, '2003', ''),
                        Array ('Bustos', 'Ezra Octavio', birthday, 8, 2, '2005', ''),
                        Array ('Jeyasingh', 'Leander', birthday, 4, 2, '1999', ''),
                        Array ('Jeyasingh', 'Rexon', birthday, 4, 8, '19??', ''),
                        Array ('Pendleton', 'Lawrence', birthday, 4, 19, '19??', ''),
                        Array ('Arico', 'Angela', birthday, 4, 24, '19??', ''),
                        Array ('Batelle', 'Mike & Deshana', anniversary, 6, 7, '2003', ''),
                        Array ('Bustos', 'Marco & Liz', anniversary, 4, 6, '2002', ''),
                        Array ('Castro', 'Liz', birthday, 4, 10, '19??', ''),
                        Array ('Flower', 'Janna', birthday, 4, 17, '1977', ''),
                        Array ('Hartnett', 'Rachel', birthday, 1, 10, '1974', ''),
                        Array ('Giordano', 'John', birthday, 11, 6, '19??', ''),
                        Array ('Usher', 'GL', birthday, 12, 13, '1976', ''),
                        Array ('Roberson', 'Betty', birthday, 7, 20, '19??', ''),
                        Array ('Chien', 'Amy', birthday, 9, 26, '1977', ''),
                        Array ('Raab', 'Julia', birthday, 3, 4, '19??', ''),
                        Array ('Sheppard', 'Joyce', birthday, 8, 22, '1943', ''),
                        Array ('Stanley', 'Dwayne', birthday, 8, 12, '1975', ''),
                        Array ('Vazquez', 'Joanna', birthday, 6, 10, '19??', ''),
                        Array ('Vazquez', 'Henry', birthday, 12, 12, '19??', ''),
                        Array ('Rowlands', 'Gareth', birthday, 10, 21, '1978', ''),
                        Array ('Vazquez', 'Henry and Joanna', anniversary, 10, 6, '2001', ''),
                        Array ('Kuruvilla', 'Liza', birthday, 7, 2, '19??', ''),
                        Array ('Kuruvilla', 'Finney', birthday, 7, 14, '1972', ''),
                        Array ('Kuruvilla', 'Mark', birthday, 12, 20, '2001', ''),
                        Array ('Kuruvilla', 'Finney and Liza', anniversary, 7, 14, '19??', ''),
                        Array ('Kuruvilla', 'Andrew', birthday, 10, 6, '2004', ''),
                        Array ('Bullwinkle', 'Marguerite', birthday, 7, 8, '19??', ''),
                        Array ('Clendaniel', 'Robert', birthday, 7, 19, '19??', ''),
                        Array ('', 'Marvin', birthday, 8, 5, '19??', ''),
                        Array ('Bugieda', 'John', birthday, 8, 23, '1934', ''),
                        Array ('Bugieda', 'John and Agnes', anniversary, 5, 4, '19??', ''),
                        Array ('Bogdan', 'Stephen and Florence', anniversary, 8, 31, '1951', ''),
                        Array ('Pendleton', 'Mary', birthday, 6, 4, '1934', ''),
                        Array ('Pendleton', 'Lawrence & Mary', anniversary, 10, 23, '1954', ''),
                        Array ('Vega', 'Virginia', birthday, 10, 7, '19??', ''),
                        Array ('Bogdan', 'Steve Jim', birthday, 10, 15, '19??', ''),
                        Array ('Bradley', 'Barbara', birthday, 10, 18, '19??', ''),
                        Array ('Roser', 'Sharon', birthday, 7, 23, '19??', ' '),
                        Array ('Roser', 'Steve', birthday, 8, 6, '1950', ''),
                        Array ('Roser', 'Steve & Sharon', anniversary, 10, 15, '19??', ''),
                        Array ('Raab', 'Michelle', birthday, 8, 20, '1979', ''),
                        Array ('Harper', 'Charlene', birthday, 6, 9, '1971', ''),
                        Array ('Harper', 'Zakeba', birthday, 12, 19, '1994', ''),
                        Array ('Harper', 'Akira', birthday, 3, 10, '1996', ''),
                        Array ('Harper', 'Kiana', birthday, 11, 15, '1997', ''),
                        Array ('Harper', 'Nikita', birthday, 5, 24, '1999', ''),
                        Array ('Harper', 'Bianca', birthday, 2, 21, '2001', ''),
                        Array ('Zimmerle', 'Bill', birthday, 10, 4, '1974', ''),
                        Array ('Wells', 'Gladys', birthday, 10, 22, '19??', ''),
                        Array ('Wells', 'AJ', birthday, 11, 28, '19??', ''),
                        Array ('Harvell', 'Gabriel', birthday, 9, 8, '19??', ''),
                        Array ('Paul', 'Annie', birthday, 12, 18, '19??', ''),
                        Array ('Hopkins', 'Emily', birthday, 06, 12, '1980', ''),
                        Array ('Hopkins', 'Paul', birthday, 04, 11, '1978', ''),
                        Array ('Hopkins', 'Paul and Emily', anniversary, 09, 10, '2005', ''),
                        Array ('Stanley', 'Patrice', birthday, 9, 9, '1979', ''),
                        Array ('Prem', 'Olga', birthday, 12, 19, '19??', ''),
                        Array ('Green', 'Charles', birthday, 6, 14, '19??', ''),
                        Array ('Flemming', 'Dyshawn', birthday, 6, 28, '19??', ''),
                        Array ('Burnett', 'Shanae', birthday, 12, 19, '1992', ''),
                        Array ('', 'Ryfeek', birthday, 12, 23, '19??', ''),
                        Array ('Mon', 'Eduardo', birthday, 12, 23, '19??', ''),
                        Array ('Usher', 'GL', birthday, 12, 13, '1976', ''),
                        Array ('Augustine', 'Nate', birthday, 12, 25, '1973', ''),
                        Array ('Tabernacle', 'Highway', anniversary, 11, 22, '1894', ''),
                        Array ('Wilkins, Jr.', 'Mike', birthday, 2, 1, '1980', ''),
                        Array ('Wulin', 'Mike & Maria', anniversary, 12, 21, '2002', ''),
                        Array ('Wulin', 'Maria', birthday, 9, 10, '1979', ''),
                        Array ('Wulin', 'Mike', birthday, 12, 25, '1972', ''),

                        Array ('EndoftheLine', 'Easy fix for end of the line', '', 13, 13, '', '')

                        );

var numberOfEvents = theEvents.length;
theEvents = theEvents.sort();

function yearsSince (theYear) {

 return ((isNaN(theYear)) ? "???" : (theCalendarYear - theYear));

}

function writeTheInfoFor (theSelectedEvent) {

  if ((monthsSelected == theSelectedEvent[theMonth]) &&
     (showBirthdays || (theSelectedEvent[theEvent] != birthday && theSelectedEvent[theEvent] !=anniversary)))  {

  var backgroundColor = (++eventsPrinted % 2 == 0) ? "OldLace" : "AntiqueWhite";
 
  document.writeln ('<TR BGColor="' + backgroundColor + '">');

//  var boldFace = (theSelectedEvent[theMonth] == currentMonth && theSelectedEvent[theDate] == currentDate) ? "<B><Font Face='Andy' Color='Red' Size='+2'>" : "";
  var boldFace = (theSelectedEvent[theMonth] == currentMonth && theSelectedEvent[theDate] == currentDate) ? "<I>" : "";
  
  document.writeln ('<TD Align="Right"');
  if (theSelectedEvent[theLastName].length == 0) document.writeln (' Colspan="2"');
  document.writeln ('>');

  if (theSelectedEvent[moreInfo].length)
    document.writeln ('<A Href="javascript:\'' + theSelectedEvent[moreInfo] + '\'.popUp();">');
  document.writeln (boldFace + theSelectedEvent[theFirstName] + '</A>&nbsp;');
  document.writeln ('</TD>');

  if (theSelectedEvent[theLastName].length > 0) {
    document.writeln ('<TD>');
    if (theSelectedEvent[moreInfo].length) 
      document.writeln ('<A Href="javascript:\'' + theSelectedEvent[moreInfo] + '\'.popUp();">');
    document.writeln (boldFace + theSelectedEvent[theLastName] + '</A>');
    document.writeln ('</TD>');
  }

  document.writeln ('<TD Align="Center">');
  document.writeln (boldFace + theSelectedEvent[theEvent]);
  document.writeln ('</TD>');

  document.writeln ('<TD Align="Right">');
  document.writeln (boldFace + months[theSelectedEvent[theMonth]] + '&nbsp;');
  document.writeln ('</TD>');

  document.writeln ('<TD>');
  document.writeln (boldFace + theSelectedEvent[theDate] + ", ");
  document.writeln ('</TD>');

  document.writeln ('<TD>');
  document.writeln (boldFace + theSelectedEvent[theYear]);
  document.writeln ('</TD>');

  document.writeln ('<TD Align="Center">');
  document.writeln (boldFace + yearsSince(theSelectedEvent[theYear]));
  document.writeln ('</TD>');

  document.writeln ('</TR>');

    document.writeln ('<TR BGColor="' + backgroundColor + '">');
    document.writeln ('<TD Colspan="7" Align="Right">');
    document.writeln ('<B><I>' + theSelectedEvent[moreInfo]);
    document.writeln ('</TD>');
    document.writeln ('</TR>');


  }

}

function closeTable () {

  document.writeln ('</Table>');
  document.close   ();

}

function compressed () {

  var tempString = "";

  for (var index=0; index < this.length; index++) 
    if (this.charAt(index) != " ")  tempString += this.charAt(index);

  return (tempString);

}

String.prototype.compressed = compressed;

function inTheArray (selectedArray, ignoreCase) {

 var index     = 0;
 var stringToFind  = this;

 var flatVersion = selectedArray.toString().compressed();

 if (stringToFind.length > 0 && selectedArray.length > 1) {

    var stringLocation = flatVersion.indexOf(stringToFind);

    if (stringLocation >= 0) {

      for (charIndex = 0; charIndex < stringLocation; charIndex++)
          if (flatVersion.charAt(charIndex) == ",") index++

    }

  }

  return (index);

}

 String.prototype.inTheArray = inTheArray;

function plus (arrayToBeAdded) {

 combinedArray    = this;
 initialArraySize = this.length;
 
 for (arrayIndex = 0; arrayIndex < arrayToBeAdded.length; arrayIndex++)
     combinedArray[initialArraySize + arrayIndex] = arrayToBeAdded[arrayIndex];

 return (combinedArray);

}

 Array.prototype.plus = plus;

function theDOW () {

      return (days[this]);
}

 Number.prototype.theDOW = theDOW;

function popUpEvent (eventNumber) {

   var theSelectedEvent = theEvents[eventNumber];
   var theCalendarYear = theSelectedEvent[theMonth] < firstOldYearMonth ? currentYear : currentYear - 1;

   eventWindow = window.open ('', "eventWindow", "width=600,height=200");
   eventWindow.document.writeln ('<Body BGColor="LightBlue"><Center>');

   eventWindow.document.writeln (months[theSelectedEvent[theMonth]] + '&nbsp;');
   eventWindow.document.writeln (theSelectedEvent[theDate] + ", ");

   if (theSelectedEvent[theEvent] == anniversary)
       eventWindow.document.writeln (theSelectedEvent[theYear] + ' (' + yearsSince(theSelectedEvent[theYear]) + ')');

     else eventWindow.document.writeln (theCalendarYear);

   eventWindow.document.writeln ('<BR>');

   eventWindow.document.writeln (theSelectedEvent[theEvent] + ': ');
   eventWindow.document.writeln ('<B>' + theSelectedEvent[theFirstName] + ' ' + theSelectedEvent[theLastName] + '</B><BR>');

   eventWindow.document.writeln (theSelectedEvent[moreInfo] + '<BR>');

   eventWindow.document.writeln ('<BR><BR><FORM><Input Type="Button" Value="Close" onClick="self.close();"></Form>');
   eventWindow.document.close();
   eventWindow.focus();

}

function theCalendarFor (requestedMonth) {

var theCalendar     = '';
var theCalendarYear = requestedMonth < firstOldYearMonth ? currentYear : currentYear - 1;
var dateRequested   = months[requestedMonth] + " 1, " + theCalendarYear;
var firstOfTheMonth = new Date (dateRequested);

var firstIndex      = firstOfTheMonth.getDay();
var deadDays        = firstIndex;

theCalendar += '<Table Border="1" BGColor="AntiqueWhite" Width="95%" Style="font-size:10pt"><TR>';

theCalendar += '<TH Colspan="7" BGColor="LightGrey"><Font Size="+3" Color="Maroon"><B>' + months[requestedMonth] + ', ' + theCalendarYear + '</TH></TR><TR>';

for (i = 0; i < days.length; i++)
   theCalendar += '<TH BGColor="LightGrey"Width="14%">' + days[i] + '</TH>';

theCalendar += '</TR><TR Valign="Top">';

if (deadDays) {

  theCalendar += '<TD Colspan="' + deadDays + '" BGColor="AntiqueWhite" Align="Center">';
  theCalendar += '<Font Color="Blue">Blue - Meetings</Font><BR>';
  theCalendar += '<Font Color="Green">Green - Missionary Emphasis</Font><BR>';

  if (showBirthdays) {

    theCalendar += '<Font Color="Purple">Purple - Birthday</Font><BR>';
    theCalendar += '<Font Color="Maroon">Red - Anniversary</Font><BR>';

  }

  theCalendar += '<BR>Click on an event for more information';
  theCalendar += '</TD>';

}

var eventIndex = 0;
 theSelectedEvent = theEvents[eventIndex];

while ((theSelectedEvent[theMonth] < requestedMonth) && (++eventIndex < numberOfEvents)) 
   theSelectedEvent = theEvents[eventIndex];


for (dayIndex = 1; dayIndex <= numberOfDaysIn[requestedMonth]; dayIndex++) {
  
 var highlight = (requestedMonth == currentMonth && dayIndex == currentDate) ? ' BGColor="Yellow"' : '';

 theCalendar += '<TD' + highlight + '><Div Align="Right"><Sup>' + dayIndex + '</Sup></Div>';

 while ((theSelectedEvent[theDate] < dayIndex) && (theSelectedEvent[theMonth] == requestedMonth))

 theSelectedEvent = theEvents[++eventIndex];

  while (dayIndex == theSelectedEvent[theDate]) {
   
    if ((requestedMonth == theSelectedEvent[theMonth]) &&
     (showBirthdays || (theSelectedEvent[theEvent] != birthday && theSelectedEvent[theEvent] !=anniversary)))  {

    var fontColor = '<Font Color="Black">';
    if (theSelectedEvent[theEvent] == birthday) fontColor = '<Font Color="Purple">';
     else if (theSelectedEvent[theEvent] == anniversary) fontColor = '<Font Color="Maroon">';
      else if (theSelectedEvent[theEvent] == missionary) fontColor = '<Font Color="Green">';
        else if (theSelectedEvent[theEvent] == meeting) fontColor = '<Font Color="Blue"><B>';
 

    var boldFace = (theSelectedEvent[theMonth] == currentMonth && theSelectedEvent[theDate] == currentDate) ? "<I>" : "";
    theCalendar += '<Div Align="Right">';
    theCalendar += '<Font Color="Red"><B>*</B></Font>';

    if (theSelectedEvent[moreInfo].length)
      theCalendar += ' <A Href="javascript:popUpEvent(' + eventIndex + ');">';

    theCalendar +=  fontColor + boldFace + theSelectedEvent[theFirstName];
    if (theSelectedEvent[theLastName].length > 0) theCalendar += ' &nbsp;';
    theCalendar +=  theSelectedEvent[theLastName];
    if (theSelectedEvent[theEvent].length > 0) theCalendar += ',';
    theCalendar +=  theSelectedEvent[theEvent];

    if (theSelectedEvent[theEvent] == anniversary)
      theCalendar += ' (' + theSelectedEvent[theYear] + ')';
 
    }

    theCalendar += '</B></Font></A>';

   theSelectedEvent = theEvents[++eventIndex];

  }

 theCalendar += '</TD>';
 if (++deadDays % 7 == 0) theCalendar += '</TR><TR Valign="Top">';

}

deadDays = 7 - (deadDays % 7);
if (deadDays != 7) {

  theCalendar += '<TD Colspan="' + deadDays + '" BGColor="AntiqueWhite" Align="Center" Border="1">';
  theCalendar += '<Font Color="Blue">Blue - Meetings</Font><BR>';
  theCalendar += '<Font Color="Green">Green - Missionary Emphasis</Font><BR>';

  if (showBirthdays) {

    theCalendar += '<Font Color="Purple">Purple - Birthday</Font><BR>';
    theCalendar += '<Font Color="Maroon">Red - Anniversary</Font><BR>';

  }

  theCalendar += '<BR>Click on an event for more information';
  theCalendar += '</TD>';

}


theCalendar += '</TR></Table>';

return (theCalendar);

}

function byMonthAscending (element0, element1) {

  if (element0[theMonth] == element1[theMonth]) {

    if (element0[theDate] == element1[theDate]) {

      return ((element0[theYear] > element1[theYear]) ? 1 : -1);

    }

     else return ((element0[theDate] > element1[theDate]) ? 1 : -1);

  }

   else return ((element0[theMonth] > element1[theMonth]) ? 1 : -1);

}


function theCollectedWeeksEvents () {

var oneDay  = 1000*60*60*24;
var oneWeek = oneDay * 7;

var eventIndex = 0;
showBirthdays = true;
  
theEvents = theEvents.sort(byMonthAscending);

 theSelectedEvent = theEvents[eventIndex];

while ((theSelectedEvent[theMonth] < currentMonth) && (++eventIndex < numberOfEvents)) 
   theSelectedEvent = theEvents[eventIndex];

var theWeeksEvents = "";

var dayRoller = new Date (); 
for (dayRoller.setTime(todaysDate.getTime()); dayRoller.getTime() < (todaysDate.getTime() + oneWeek); dayRoller.setTime(dayRoller.getTime() + oneDay)) {
  

 dayIndex = dayRoller.getDate();
 requestedMonth = dayRoller.getMonth()+1;

 while ((theSelectedEvent[theDate] < dayIndex) && (theSelectedEvent[theMonth] == requestedMonth)) 
   theSelectedEvent = theEvents[++eventIndex];
  while (dayIndex == theSelectedEvent[theDate]) {
   
    if ((requestedMonth == theSelectedEvent[theMonth]) &&
     (showBirthdays || (theSelectedEvent[theEvent] != birthday && theSelectedEvent[theEvent] !=anniversary)))  {
    var theNewDate = months[theSelectedEvent[theMonth]] + " " + theSelectedEvent[theDate] + ", "
        theNewDate+= (requestedMonth < currentMonth) ? currentYear+1 : currentYear;
    var eventDate = new Date (theNewDate);
    var theDay    = days[eventDate.getDay()];

    theWeeksEvents += '<LI>' + theDay + ", " + theNewDate + ": ";

    if (theSelectedEvent[moreInfo].length)
      theWeeksEvents += ' <A Href="javascript:popUpEvent(' + eventIndex + ');">';

    theEventDescriptor = theSelectedEvent[theFirstName];
    if (theSelectedEvent[theLastName].length > 0) theEventDescriptor += ' ';
    theEventDescriptor += theSelectedEvent[theLastName];
    if (theSelectedEvent[theEvent].length > 0) theEventDescriptor += ', ';
    theEventDescriptor += theSelectedEvent[theEvent];

    if (theSelectedEvent[theEvent] == anniversary)
      theEventDescriptor += ' (' + theSelectedEvent[theYear] + ')';

    theWeeksEvents += theEventDescriptor;  
    allMessages[allMessages.length] = theDay.substring(0,3) + ", " + (eventDate.getMonth()+1) + "/" + eventDate.getDate() + ": " + theEventDescriptor;
 
    }

    theWeeksEvents += '</B></Font></A>';

   theSelectedEvent = theEvents[++eventIndex];

  }

 }

    theWeeksEvents += '<BR>  <Div Style="font-size:14 pt; color:maroon; text-Decoration:none;" Align="Center"> &nbsp;<BR>Latest Information:<BR>'
                     +'       <A Href="http://www.HighwayTabNews.org">Highway Tab News</A>    </Div>'
 return (theWeeksEvents);

}
