<!-- // Hide the script

/*
 * eventcheck.js
 *
 * Checks the date and prints important events corresponding with those dates
 * Michael Lieberman, 2001
 *
 * Date::getYear() fix
 */

// Constants
var MAX_ELEM   = 100; // The maximum number of events that the array can hold
var START_TIME = 0;   // The time to begin displaying events (24hr)
var END_TIME   = 24;  // The time to stop displaying events  (24hr)

var now = new Date();
if(now.getHours() >= START_TIME && now.getHours() < END_TIME)
{

/* Events is the two dimensional array holding the dates and events.
 * For any given i (under MAX_ELEM):
 *   Events[i][0] is the starting date string
 *   Events[i][1] is the ending date string
 *   Events[i][2] is the event string
 */
var Events = new Array(MAX_ELEM);

// "@" will be the string to flag the unfilled items
for(i=0; i<MAX_ELEM; i++)
{
   Events[i] = new Array(5);
   Events[i][0] = "@";
   Events[i][1] = "@";
   Events[i][2] = "@";
   Events[i][3] = "@";
   Events[i][4] = "@";
}

/* Manually fill in the dates / events.  I wanted to read from a text file
 *   but Javascript would not allow me...
 *
 * To add a new event, add five lines.  Examples:
 *   Events[0][0] = '10/31/2001';
 *   Events[0][1] = '10/31/2001';
 *   Events[0][2] = 'headline';
 *   Events[0][3] = 'link';
 *   Events[0][4] = 'blurb';
 *
 * Time the event will be displayed:  Starting on Events[n][0],
 *                                    Ending at the end of the day Events[n][1]
 *
 * The event name can also have HTML tags.
 * The order in which events are entered does not matter.  The events will be
 *   displayed on the page (if the date is in the valid range) in whatever
 *   order they are in in the array.
 */

Events[0][0]    = '11/21/2009';
Events[0][1]    = '12/4/2009';
Events[0][2]    = 'WJ\'s newest Board Certified Teachers: Suzan Borno, Jennifer Hall and Nathan Schwartz';
Events[0][3]    = '/schools/wjhs/information/board_certified_teachers.shtm';
Events[0][4]    = 'Click the above link for more information about this professional credential.';
/*
Events[0][0]    = '11/7/2009';
Events[0][1]    = '11/20/2009';
Events[0][2]    = 'WJ\'s November 7th Forensics Winners';
Events[0][3]    = '/schools/wjhs/orgs/forensics/091107.shtm';
Events[0][4]    = '';
*/

Events[1][0]    = '11/21/2009';
Events[1][1]    = '12/4/2009';
Events[1][2]    = 'WJ\'s Recently Honored Musicians';
Events[1][3]    = '/schools/wjhs/depts/music/honors.shtm';
Events[1][4]    = '';

Events[2][0]    = '11/12/2009';
Events[2][1]    = '11/30/2009';
Events[2][2]    = 'Fall Sports Honorees';
Events[2][3]    = '';
Events[2][4]    = '<span class="hilite">All State</span>: Nick Castro-2nd Team Soccer, <span class="hilite">All Gazette</span>: Georgina Beven-1st Team Field Hockey; Sarah Bernstein-Honorable ' +
                  'Mention Tennis; Ishan Dey, Sean O\'Leary, Nick Regan, Alex Willett, Anna Bosse, Camille Bouvet &amp; Jenna Willett-1st Team Cross Country; Tom Martin-Girls Cross Country ' +
                  'Coach of the Year, <span class="hilite">MCPS Senior All-Star Game Participants</span>: Anna Elder-Volleyball; John Marshall &amp; Trevor Wilson-Boys Soccer; Roya Hakimzadeh, ' +
                  'Emma Krieger &amp; Chaucia Sydnor-Girls Soccer';
/*
Events[2][0]    = '10/12/2009';
Events[2][1]    = '10/25/2009';
Events[2][2]    = 'WJ\'s <i>It\'s Academic</i> team on winning their 1st Round match';
Events[2][3]    = '';
Events[2][4]    = '';
*/
Events[3][0]    = '11/4/2009';
Events[3][1]    = '11/17/2009';
Events[3][2]    = 'WJ Principal Christopher Garran on Receiving a 2009 University of Maryland  College of Education Alumni Award';
Events[3][3]    = '';
Events[3][4]    = 'Dr. Garran will be recognized as Outstanding New Professional at a special ceremony scheduled for Thursday, November 19, at the Samuel Riggs IV Alumni Center at UMCP.';

Events[4][0]    = '11/4/2009';
Events[4][1]    = '11/17/2009';
Events[4][2]    = 'WJ\'s November 4th Debate Winners';
Events[4][3]    = '/schools/wjhs/orgs/debate/091104.shtm';
Events[4][4]    = '';

Events[5][0]    = '11/5/2009';
Events[5][1]    = '11/14/2009';
Events[5][2]    = 'WJ Cross Country - Boys & Girls 4A Regional Champions!';
Events[5][3]    = '/schools/wjhs/athletics/crosscountry/';
Events[5][4]    = 'Come cheer on the teams at the State Meet at Hereford HS on November 14th.';

Events[6][0]    = '11/3/2009';
Events[6][1]    = '11/17/2009';
Events[6][2]    = 'WJ French Teacher Katherine Baird on receiving the Marcellus Waddill Excellence in Teaching Award from Wake Forest University';
Events[6][3]    = 'http://montgomeryschoolsmd.org/bulletinpreview/article.aspx?id=81096';
Events[6][4]    = 'Each year, the university honors an elementary and secondary teacher whose innovative skills make a difference in the classroom. ' +
                  'At WJ Katherine teaches French 1 and French 3 and sponsors the French Honor Society. She also is the senior class advisor, and teaches Promethean classes. ' +
                  'Click the above link to read the article about Katherine\'s prize in "The Bulletin"';
/*
Events[5][0]    = '4/17/2009';
Events[5][1]    = '4/30/2009';
Events[5][2]    = '<i>The Pitch</i> staff for winning "First Place with Special Merit", the highest award possible, from The American Scholastic Press Association and to Jacob Gallagher, ' +
                  'photography editor, and his photography staff for winning "Best Photography Overall"';
Events[5][3]    = '';
Events[5][4]    = '';
*/
Events[7][0]    = '10/15/2009';
Events[7][1]    = '10/28/2009';
Events[7][2]    = 'WJ Forensics wins National Forensics League "Outstanding Chapter" Award';
Events[7][3]    = '';
Events[7][4]    = 'This coveted award, based upon student participation, is the highest honor NFL can bestow upon a chapter. Only one school in each district attains this honor yearly and it ' + 
                  'must wait at least 5 years before being eligible for the award again This year, out of 2,900 NFL members nationwide, Walter Johnson is one of only 105 to receive the ' +
                  'Leading Chapter Award. Congratulations to Coach "Rusty" McCrady and the Forensics Team.';
/*
Events[2][0]    = '4/8/2009';
Events[2][1]    = '4/21/2009';
Events[2][2]    = 'WJ\'s Winter Sports Honorees...';
Events[2][3]    = '';
Events[2][4]    = 'Washington Post All Met: Ice Hockey-Daniel Cohen, 1st Team; Swimming-Elizabeth Pepper, 1st Team, ' +
                  'Annie Kastler &amp; Andrew Tollefson, honorable mention; Washington Post All League Montgomery 4A Basketball Team-Nash Oh<br>' +
                  'All Gazette Athletes: Basketball-2nd Team-Nash Oh &amp; Carl Yaffe; Swim &amp; Dive-1st Team-Elizabeth Pepper, Andrew Tollefson &amp; Mina Vucic; Honorable Mention-Aaron Budner' +
                  ' &amp; Annie Kastler; Ice Hockey-1st Team-Daniel Cohen; Honorable Mention-Zach Abelman';
*/
/*
Events[5][0]    = '3/24/2009';
Events[5][1]    = '4/6/2009';
Events[5][2]    = 'WJ\'s Symphonic Orchestra on earning four superior ratings at the District Music Festival and qualifying for the MD State Music Festival!';
Events[5][3]    = '';
Events[5][4]    = '';

Events[6][0]    = '3/22/2009';
Events[6][1]    = '4/4/2009';
Events[6][2]    = 'WJ Senior Re-I Chin on her Grand Prize in Chemistry at the Montgomery County Science Fair!';
Events[6][3]    = 'http://www.sciencemontgomery.org/';
Events[6][4]    = 'Re-I took first place in the chemistry category and was chosen as one of the top four presenters out of approximately 120. She will be representing Maryland and WJ ' +
                  'at the <a href="http://www.societyforscience.org/ISEF/.">Intel International Science & Engineering Fair (Intel ISEF)</a> in Reno, NV from 5/10-5/15.';

Events[7][0]    = '3/23/2009';
Events[7][1]    = '4/5/2009';
Events[7][2]    = 'WJ\'s Montgomery County National History Day Winners';
Events[7][3]    = '';
Events[7][4]    = 'NHD is a national competition where students from around the country conduct research on topics they select and create an exhibit, documentary film, web site or ' +
'performance based on their research. These projects were developed over the last 4 months and represent countless hours of student work. WJ entered over 30 students ' +
' this year and the following will be representing Montgomery County in the "senior" (i.e. high school) category at state competition in April at UMBC<br>' +
'SENIOR WEBSITE: Alice Chang, Eva Morgun, Lina Valivullah-"Benjamin Franklin:  The Model American" Teacher:  Nathan Schwartz<br>' +
'SENIOR GROUP EXHIBIT: Yang You, Katherine Mahdavi, and Katerina Triantos-"Elizabeth Blackwell:  The First Woman Doctor" Teacher:  Nathan Schwartz; ' +
'Ksenia Kirilyuk and Martha Afework-"Theodor Seuss Geisel" Teacher:  Nathan Schwartz<br>'+
'SENIOR GROUP DOCUMENTARY: Sasha Tycko and Devon Murtha-"Jesse James" Teacher:  Nathan Schwartz<br>' +
'SENIOR INDIVIDUAL DOCUMENTARY: Robindra Nath Banerji-"Henry Ford:  Manufacturing  the Modern America" Teacher:  Nathan Schwartz; Katie Levingston-"Jonas Salk:  A Polio Pioneer" ' +
'Teacher: Nathan Schwartz.<br>SENIOR INDIVIDUAL EXHIBIT: Shannon Dade-"Thomas Paine" Teacher: Nathan Schwartz; Gregory Segal-"Grover Cleveland versus Congress:  Strengthening the ' +
'Executive Branch" Teacher:  Nathan Schwartz.<br>SENIOR INDIVIDUAL PERFORMANCE: Rebecca Gale-"Corrie ten Boom: Resistance and Reconciliation" Teacher:  Micah Wiggins.';
*/
Events[8][0]    = '3/23/2009';
Events[8][1]    = '4/5/2009';
Events[8][2]    = '<i>Spectator Magazine</i> on recently receiving several honors';
Events[8][3]    = '';
Events[8][4]    = 'Named one of twelve finalists for #1 High School Literary & Arts Magazine in America by The National Scholastic Press Association. The winner will be announced in mid-April 2009<br>' +
'On March 14th of 2009, Columbia Scholastic Press Association, under the auspices of the Columbia University Graduate School of Journalism,  recognized <i>Spectator Magazine</i> in its ' +
'Gold Circle Award competition for excellence in seven of a possible thirty-seven categories.  <i>Spectator</i> was recognized in the categories of  fiction, illustration, cartoon, and photography. ' + 
'Spectator swept the category of "Single Illustration Rendering Photographic Material: Color," one of only two high schools nationally to sweep an entire category 1-2-3.  Only four other ' +
'high schools nationally garnered more awards than <i>Spectator</i>.  Students receiving special recognition were: Angie Alzona, Kelsey Devries, Emma Viglotti, and Missy Rice.';

//Events[7][0]    = '1/31/2009';
//Events[7][1]    = '2/13/2009';
//Events[7][2]    = 'WJ\'s <i>It\'s Academic</i> team, sophomore Kuo-Kai Chin and seniors Andi Shahu and Daichi Ueda, on their 1st round win!';
//Events[7][3]    = '';
//Events[7][4]    = 'The match taped on January 31st will air on WRC 4 at 10:30 a.m. on Saturday, March 21st. The 2nd round match will be taped at WRC on March 7th at 1:30 p.m.';

//Events[1][0]    = '12/18/2008';
//Events[1][1]    = '12/31/2008';
//Events[1][2]    = 'WJ\'s Fall All-Met &amp; All League Sports Honorees...';
//Events[1][3]    = 'http://www.washingtonpost.com/wp-srv/sports/hssports/longterm/allmets/fall08/';
//Events[1][4]    = '<span class="hilite">Boys Cross Country</span>-Tom Martin, Coach of the Year &amp; Sean O\'Leary, Honorable Mention; <span class="hilite">Girls Cross Country</span>-Anna Bosse, ' +
//                  '1st Team; <span class="hilite">Field Hockey</span>-Emily Kleinburd, Honorable Mention; <span class="hilite">Boys Soccer</span>-Pablo Torrano, 2nd Team; ' +
//                  '<span class="hilite">Girls Soccer</span>-Caroline Miller, 1st Team; <span class="hilite">MD 4A All-League Football Selection</span>-Paul Okeyo, Defense';

//Events[8][0]    = '2/1/2009';
//Events[8][1]    = '2/14/2009';
//Events[8][2]    = 'WJ Senior Re-I Chin on her award as an Intel Science Talent Search Semifinalist!';
//Events[8][3]    = 'http://www.montgomeryschoolsmd.org/press/index.aspx?pagetype=showrelease&id=2448';
//Events[8][4]    = 'Seventeen MCPS students were named semifinalists in one of the most rigorous and noted science competitions for high school students in the United States. Click ' +
                  'the above link for the MCPS public announcement about the awards.';

//Events[2][0]    = '12/17/2008';
//Events[2][1]    = '12/31/2008';
//Events[2][2]    = 'WJ\'s New Members of the Science National Honor Society';
//Events[2][3]    = '/schools/wjhs/orgs/snhs/members.shtm';
//Events[2][4]    = 'WJ\'s Induction Ceremony was held the evening of December 17th';

//Events[3][0]    = '12/17/2008';
//Events[3][1]    = '12/31/2008';
//Events[3][2]    = 'WJ\'s Accomplished Musicians';
//Events[3][3]    = '/schools/wjhs/depts/music/honors.shtm';
//Events[3][4]    = '';

//Events[4][0]    = '12/15/2008';
//Events[4][1]    = '12/31/2008';
//Events[4][2]    = 'WJ\'s New Members of the National Honor Society';
//Events[4][3]    = '/schools/wjhs/orgs/nat\'lhonors/members.shtm';
//Events[4][4]    = 'WJ\'s Induction Ceremony was held the evening of December 15th';

//Events[5][0]    = '12/15/2008';
//Events[5][1]    = '12/31/2008';
//Events[5][2]    = 'WJ\'s "Christmas in Washington" Vocalists';
//Events[5][3]    = '/schools/wjhs/depts/music/christmas.shtm';
//Events[5][4]    = '';

//Events[6][0]    = '12/15/2008';
//Events[6][1]    = '12/31/2008';
//Events[6][2]    = 'WJ\'s Gospel/Show Choir and Jazz Ensemble for earning Superior ratings at their Festivals on December 12 &amp; 13';
//Events[6][3]    = '';
//Events[6][4]    = '';

//Events[5][0]    = '9/30/2008';
//Events[5][1]    = '10/14/2008';
//Events[5][2]    = 'WJ\'s National Achievement Awardees: Semifinalist-Brian Gill; Outstanding Participants-Patrick Ebobisse, ' +
//                  'Raven Holmes, Alexandra Lawrence &amp; Claudel Ngounou';
//Events[5][3]    = '';
//Events[5][4]    = '';

//Events[7][0]    = '12/18/2008';
//Events[7][1]    = '12/31/2008';
//Events[7][2]    = 'Paul Okeyo &amp; Aaron Smith, <i>Gazette</i> Football 2nd Team All-Defense Selections';
//Events[7][3]    = '';
//Events[7][4]    = '';

//Events[7][0]    = '5/19/2008';
//Events[7][1]    = '6/1/2008';
//Events[7][2]    = 'Boys Track & Field - Division I Champions';
//Events[7][3]    = '';
//Events[7][4]    = '';

//Events[8][0]    = '5/19/2008';
//Events[8][1]    = '6/1/2008';
//Events[8][2]    = 'Wind Ensemble &amp; Symphonic Orchestra - received "Excellent" &amp; "Outstanding" ratings at the Maryland State Music Festival';
//Events[8][3]    = '';
//Events[8][4]    = '';

//Events[9][0]    = '5/19/2008';
//Events[9][1]    = '6/1/2008';
//Events[9][2]    = 'Concert Choir &amp; Madrigals - received "Excellent" ratings at the Maryland State Choral Festival';
//Events[9][3]    = '';
//Events[9][4]    = '';

Events[10][0]    = '5/19/2008';
Events[10][1]    = '6/1/2008';
Events[10][2]    = 'WJ Gymnastics Team - MD State Silver Medalists &amp; gymnast Shannon Mitchell - Silver Medalist in the All-Around Competition';
Events[10][3]    = '';
Events[10][4]    = '';

//Events[8][0]    = '2/25/2008';
//Events[8][1]    = '3/9/2008';
//Events[8][2]    = 'WJ\'s Indoor Track team on finishing in 6th place at the state championships. ' +
//                  'Chris Moen won the 800m in a new state record time. Brian Graves won 2nd place in the 3200m ' +
//                  'and the boys 4 x 800m relay team of Sean O\'Leary, Alexander Connant, Asger Klocker &amp; Chris Moen ' +
//                  'finished 3rd.';
//Events[8][3]    = '';
//Events[8][4]    = '';

//Events[9][0]    = '2/4/2008';
//Events[9][1]    = '2/16/2008';
//Events[9][2]    = 'WJ\'s <i>Spectator Magazine</i> on receiving multiple awards';
//Events[9][3]    = '';
//Events[9][4]    = 'On January 28, 2008, <i>Spectator Magazine</i>, Walter Johnson\'s literary and arts publication, ' +
//                  'received its 4th national award for its 2007 issue when it won a Gold Medal in the prestigious ' +
//                  'Columbia Scholastic Press Association competition. This award is presented each year at Columbia ' +
//                  'University\'s Graduate School of Journalism in New York City. The Columbia Competition is so large, ' +
//                  'and so intense, that it employs over 700 judges to critique the work of its participants ' +
//                  'and award the medals. In September, Spectator Magazine graduated from 1st Place to All Star in the ' +
//                  'National Scholastic Press Association\'s competition. In October, Spectator also won 1st Place Awards ' +
//                  'in both the American Scholastic Press Association, and the Maryland-District of Columbia Scholastic ' +
//                  'Press Association\'s competitions. Spectator Magazine sold out its 2007 issue; however, Spectator ' +
//                  'is currently taking pre-orders for the upcoming 2008 issue. Pre-orders are running ahead of last ' +
//                  'year\'s sales, so to ensure a copy of the upcoming issue order today. These magazines have proven ' +
//                  'very effective supplements to college applications. ';

Events[12][0]    = '1/29/2008';
Events[12][1]    = '2/11/2008';
Events[12][2]    = 'Gabby D\'Elia, Caroline Miller and Lucas Szabo'; 
Events[12][3]    = '';
Events[12][4]    = 'The three WJ soccer players were recognized and awarded certificates at the Maryland Association of ' +
                  'Coaches of Soccer All State Banquet on January 28th in Glen Burnie Maryland for their membership ' +
                  'on the All-State Soccer Teams. Caroline Miller was additionally recognized as a member of First ' +
                  'Team All South, and First Team All-American. She is one of only two Maryland girls to earn ' +
                  'All-American honors.';

Events[15][0]    = '5/21/2007';
Events[15][1]    = '6/30/2007';
Events[15][2]    = 'WJ\'s <i>It\'s Academic</i> Team on their DC Area &amp; Super Bowl Championships!';
Events[15][3]    = '/schools/wjhs/orgs/it\'sacademic/';
Events[15][4]    = 'The matches will air on NBC 4 on Saturday, June 30th at 10:00 a.m. and 7:00 p.m.';

Events[20][0]    = '3/20/2007';
Events[20][1]    = '4/2/2007';
Events[20][2]    = 'Senior Tianhui Shen and sophomore Daichi Ueda on their selection to The Maryland Academic All-Star Team for Quiz Bowl';
Events[20][3]    = '';
Events[20][4]    = 'The team competes in June at the Panasonic Academic Challenge in Orlando Florida against delegations from other states ' +
                                       'around the country. The Maryland team has won the tournament more often than any other state by a wide margin.';

Events[21][0]    = '3/13/2009';
Events[21][1]    = '3/26/2009';
Events[21][2]    = 'WJ\'s SGA and students for again being the winning school in the "Pennies for Patients" campaign for leukemia and lymphoma patients';
Events[21][3]    = '';
Events[21][4]    = 'For the third year in a row WJ raised the most money for the Pennies For Patients campaign, $15,702 in a 3 week period. Congratulations and thanks to all the '+
                   'students, staff and community members who teamed up to support the Leukemia and Lymphoma Society, especially the student leadership and SGA Sponsor Nico Atencio.';

Events[22][0]    = '3/13/2007';
Events[22][1]    = '3/26/2007';
Events[22][2]    = 'WJ\'s Symphonic Orchestra on their overall Excellent Rating at the MCPS Orchestra Festival';
Events[22][3]    = '';
Events[22][4]    = '';

Events[23][0]    = '3/10/2007';
Events[23][1]    = '3/23/2007';
Events[23][2]    = 'WJ\'s <i>It\'s Academic</i> Team on their 2nd round win against Churchill &amp; Sidwell Friends';
Events[23][3]    = '';
Events[23][4]    = '';

Events[24][0]    = '8/26/2007';
Events[24][1]    = '8/28/2007';
Events[24][2]    = 'WJ\'s Class of 2011. Welcome!';
Events[24][3]    = '';
Events[24][4]    = '';

i = 0;

// The locations of the slashes in the date
var AFSlash, ALSlash, BFSlash, BLSlash;

// Starting date / ending date strings -- used for comparison
var sdate = "", edate = ""; haveone = "";
var cdate;

    /* The Netscape and IE versions of Date::getYear() return different values.
     *   Netscape returns the number of years since 1900, while IE returns
     *   the four number year.
     *
     * NOTE: I have not tested this code on other browsers, so I am assuming
     *   that every other browser in existence returns the four number year. ;)
     */
    if(navigator.appName.toLowerCase().indexOf("netscape") != -1)
       cdate = parseInt(now.getYear()+1900) + "-";
//    else if(navigator.appName.toLowerCase().indexOf("internet explorer") != -1)
//       cdate = parseInt(now.getYear()) + "-";
    else
       cdate = parseInt(now.getYear()) + "-";

    if((now.getMonth()+1) < 10)
      cdate += "0";
    cdate += (parseInt(now.getMonth()+1) + "-");

    if(now.getDate() < 10)
      cdate += "0";
    cdate += parseInt(now.getDate());

for(i=0; i<MAX_ELEM; i++)
{
if (Events[i][0] != "@")
{
  AFSlash = Events[i][0].indexOf("/");
  ALSlash = Events[i][0].lastIndexOf("/");
  BFSlash = Events[i][1].indexOf("/");
  BLSlash = Events[i][1].lastIndexOf("/");

  sdate = Events[i][0].substring(ALSlash+1,Events[i][0].length) + "-";

  if(parseInt(Events[i][0].substring(0,AFSlash)) < 10)
    sdate += "0";
  sdate += (Events[i][0].substring(0,AFSlash) + "-");

  if(parseInt(Events[i][0].substring(AFSlash+1,ALSlash)) < 10)
    sdate += "0";
  sdate += Events[i][0].substring(AFSlash+1,ALSlash);

  edate = Events[i][1].substring(BLSlash+1,Events[i][1].length) + "-";

  if(parseInt(Events[i][1].substring(0,BFSlash)) < 10)
    edate += "0";
  edate += (Events[i][1].substring(0,BFSlash) + "-");

  if(parseInt(Events[i][1].substring(BFSlash+1,BLSlash)) < 10)
    edate += "0";
  edate += Events[i][1].substring(BFSlash+1,BLSlash);

/* prepare the data to display

 * If it's within the date range...
 * If blurb is blank don't display a + sign
 * If link is non-blank, code it.
 * Display the headline
 * Display any non-blank blurb 
 */

  if(sdate <= cdate && edate >= cdate)
   { 

if (haveone == "") 
{ document.write('<h1>Congratulations to...</h1>'); //write the category heading
haveone = 1                                         //indicate that we displayed the heading
}

var headline = "<h3>";
if (Events[i][4] != "")
  headline = headline + '<img src="/gr/collapse-small.gif" border="0" onclick="javascript:tdisplay(500' + i + ')" id="500' 
  + i + 'plus" class="plusminus"><img src="/gr/expand-small.gif" border="0" onclick="javascript:tdisplay(500' + i + 
  ')" id="500' + i + 'minus" style="display:none" class="plusminus">';

 if (Events[i][3] != "")
  headline = headline + '<a href="' + Events[i][3] + '" target="_blank">';  

 headline = headline + Events[i][2];

 if (Events[i][3] != "")
 headline = headline + '</a>';

 headline = headline + '</h3>';

 document.write('<span class="specstyle">' + headline + '</span>');

 if (Events[i][4] != "")
      document.write('<p id="500' + i + '" style="display:none">' + Events[i][4] + '</p>');

// Display the data
//       document.write('<span class="specstyle">' +
//       Events[i][2] + '</span><br><br>');
// debugging
//  document.write(sdate + " " + cdate + " " + edate + "<br>");

} 
} 
}
} // date-check
if (haveone == 1) document.write('<p></p><hr>'); //blank line and hr at the end

// End hiding the Script-->
