// JavaScript Document
//var textSched = "<table width='100%' border='1' align='left' bordercolor='#FF0000'><tr>";
//textSched = textSched + "<td>&bull; <strong>May 12</strong> at Catholic High School</td>";
//textSched = textSched + "</tr></table>";
var dateNow = new Date();
var dayNow = dateNow.getDate();
var ldayNow;
if (dayNow < 10)
	{ldayNow = "0" + dayNow;}
else
	{ldayNow = dayNow;}
var monthNow = dateNow.getMonth() + 1;
var lmonthNow;
if (monthNow < 10)
	{lmonthNow = "0" + monthNow;}
else
	{lmonthNow = monthNow;}
var yearNow = dateNow.getFullYear();
var currentDate = yearNow + "-" + lmonthNow + "-" + ldayNow;

var textSched;

var numCount = 0;
var numEvents = 10;

textSched = "<p align='center' class='rhead'><nobr>Upcoming Events</nobr></strong></p>";
textSched = textSched + "<p>";





if (currentDate < "2012-01-14" && numCount < numEvents)
{textSched = textSched + "<strong>January 10</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-01-26" && numCount < numEvents)
{textSched = textSched + "<strong>January 26</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-02-04" && numCount < numEvents)
{textSched = textSched + "<strong>February 4</strong> <br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-02-11" && numCount < numEvents)
{textSched = textSched + "<strong>February 11</strong> - 5:30 PM<br />Valentine Banquet<br /><hr>"
numCount++}

if (currentDate < "2012-02-19" && numCount < numEvents)
{textSched = textSched + "<strong>February 19</strong> <br />Baptist Women's Day<br /><hr>"
numCount++}

if (currentDate < "2012-02-22" && numCount < numEvents)
{textSched = textSched + "<strong>February 22</strong> - 7:00 PM<br />Ash Wednesday Service<br /><hr>"
numCount++}

if (currentDate < "2012-02-23" && numCount < numEvents)
{textSched = textSched + "<strong>February 23</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-03-10" && numCount < numEvents)
{textSched = textSched + "<strong>March 10</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-03-11" && numCount < numEvents)
{textSched = textSched + "<strong>March 11</strong><br />Daylight Savings Time <br />Begins - <i>Spring Forward</i><br /><hr>"
numCount++}

if (currentDate < "2012-03-22" && numCount < numEvents)
{textSched = textSched + "<strong>March 22</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-04-05" && numCount < numEvents)
{textSched = textSched + "<strong>April 5</strong> - 7:00 PM<br />Maundy Thursday Service<br /><hr>"
numCount++}

if (currentDate < "2012-04-06" && numCount < numEvents)
{textSched = textSched + "<strong>April 6</strong> - 7:00 PM<br />Good Friday Service<br /><hr>"
numCount++}

if (currentDate < "2012-04-07" && numCount < numEvents)
{textSched = textSched + "<strong>April 7</strong> - 1:00 PM<br />Easter Egg Hunt<br /><hr>"
numCount++}

if (currentDate < "2012-04-08" && numCount < numEvents)
{textSched = textSched + "<strong>April 8</strong><br />No Evening Activities<br /><i>Easter Sunday</i><br /><hr>"
numCount++}

if (currentDate < "2012-04-14" && numCount < numEvents)
{textSched = textSched + "<strong>April 14</strong> <br />&bull; Food Drive<br />&bull; The Hyssongs<br /><hr>"
numCount++}

if (currentDate < "2012-04-26" && numCount < numEvents)
{textSched = textSched + "<strong>April 26</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-05-12" && numCount < numEvents)
{textSched = textSched + "<strong>May 12</strong> <br />&bull; Food Drive<br />&bull; Spring Fling<br /><hr>"
numCount++}

if (currentDate < "2012-05-13" && numCount < numEvents)
{textSched = textSched + "<strong>May 13</strong><br />No Evening Activities<br /><i>Mother's Day</i><br /><hr>"
numCount++}

if (currentDate < "2012-05-20" && numCount < numEvents)
{textSched = textSched + "<strong>May 10</strong><br />Youth Sunday<br /><hr>"
numCount++}

if (currentDate < "2012-05-24" && numCount < numEvents)
{textSched = textSched + "<strong>May 22</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-05-27" && numCount < numEvents)
{textSched = textSched + "<strong>May 27</strong><br />No Evening Activities<br /><i>Memorial Day</i><br /><hr>"
numCount++}

if (currentDate < "2012-06-03" && numCount < numEvents)
{textSched = textSched + "<strong>June 3</strong><br />Graduation Sunday<br /><hr>"
numCount++}

if (currentDate < "2012-06-09" && numCount < numEvents)
{textSched = textSched + "<strong>June 9</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-06-17" && numCount < numEvents)
{textSched = textSched + "<strong>June 17</strong><br />No Evening Activities<br /><i>Father's Day</i><br /><hr>"
numCount++}

if (currentDate < "2012-06-19" && numCount < numEvents)
{textSched = textSched + "<strong>June 16-19</strong><br /><a href='children.php#passport'>Children's Camp</a><br /><hr>"
numCount++}

if (currentDate < "2012-06-28" && numCount < numEvents)
{textSched = textSched + "<strong>June 28</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-06-29" && numCount < numEvents)
{textSched = textSched + "<strong>June 24-29</strong><br /><a href='youth.php#passport'>Youth Camp</a><br /><hr>"
numCount++}

if (currentDate < "2012-07-04" && numCount < numEvents)
{textSched = textSched + "<strong>July 4</strong><br />No Evening Activities<br /><i>Independence Day</i><br /><hr>"
numCount++}

if (currentDate < "2012-07-13" && numCount < numEvents)
{textSched = textSched + "<strong>July 8-13</strong><br /><a href='vbs.php'>Vacation Bible School</a><br /><hr>"
numCount++}

if (currentDate < "2012-07-14" && numCount < numEvents)
{textSched = textSched + "<strong>July 14</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-07-26" && numCount < numEvents)
{textSched = textSched + "<strong>July 26</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-08-11" && numCount < numEvents)
{textSched = textSched + "<strong>August 11</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-08-23" && numCount < numEvents)
{textSched = textSched + "<strong>August 23</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-08-26" && numCount < numEvents)
{textSched = textSched + "<strong>August 26</strong> <br />&bull; Sunday School <br />&nbsp; &nbsp;Promotion Sunday/<br />&nbsp; &nbsp;Teacher Installation<br />&bull; Talent Show<br /><hr>"
numCount++}

if (currentDate < "2012-09-02" && numCount < numEvents)
{textSched = textSched + "<strong>September 2</strong><br />No Evening Activities<br /><i>Labor Day</i><br /><hr>"
numCount++}

if (currentDate < "2012-09-05" && numCount < numEvents)
{textSched = textSched + "<strong>September 5</strong><br />Children's Choir & Handbells Begin<br /><hr>"
numCount++}

if (currentDate < "2012-09-08" && numCount < numEvents)
{textSched = textSched + "<strong>September 8</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-09-16" && numCount < numEvents)
{textSched = textSched + "<strong>September 16</strong><br />Church Picnic<br /><hr>"
numCount++}

if (currentDate < "2012-09-29" && numCount < numEvents)
{textSched = textSched + "<strong>September 29</strong><br />7:30 AM - 2:00 PM<br /><a href='bazaar.php'>Church Bazaar</a><br /><hr>"
numCount++}

if (currentDate < "2012-10-02" && numCount < numEvents)
{textSched = textSched + "<strong>October 2</strong><br />Seniors to Dixie Classic Fair<br /><hr>"
numCount++}

if (currentDate < "2012-10-13" && numCount < numEvents)
{textSched = textSched + "<strong>October 13</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-10-21" && numCount < numEvents)
{textSched = textSched + "<strong>October 21</strong> <br />&bull; Homecoming<br />&bull; <i>No Evening Activities</i><br /><hr>"
numCount++}

if (currentDate < "2012-10-25" && numCount < numEvents)
{textSched = textSched + "<strong>October 25</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-10-28" && numCount < numEvents)
{textSched = textSched + "<strong>October 28</strong><br />HarvestFest/Trunk or Treat<br /><hr>"
numCount++}

if (currentDate < "2012-11-04" && numCount < numEvents)
{textSched = textSched + "<strong>November 4</strong><br />Endowment Dinner<br /><hr>"
numCount++}

if (currentDate < "2012-11-10" && numCount < numEvents)
{textSched = textSched + "<strong>November 10</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-11-11" && numCount < numEvents)
{textSched = textSched + "<strong>November 11</strong><br />Daylight Savings Time <br />Ends - <i>Fall Back</i><br /><hr>"
numCount++}

if (currentDate < "2012-11-15" && numCount < numEvents)
{textSched = textSched + "<strong>November 15</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-11-21" && numCount < numEvents)
{textSched = textSched + "<strong>November 21</strong> - 7:00 PM<br />Thanksgiving Lovefeast<br /><i>UC Moravian Church </i><br /><hr>"
numCount++}

if (currentDate < "2012-11-25" && numCount < numEvents)
{textSched = textSched + "<strong>November 25</strong> - 7:00 PM<br />Family Advent Fellowship<br /><hr>"
numCount++}

if (currentDate < "2012-12-02" && numCount < numEvents)
{textSched = textSched + "<strong>December 2</strong> - 7:00 PM<br />Chrismon Service<br /><hr>"
numCount++}

if (currentDate < "2012-12-08" && numCount < numEvents)
{textSched = textSched + "<strong>December 8</strong><br />Food Drive<br /><hr>"
numCount++}

if (currentDate < "2012-12-09" && numCount < numEvents)
{textSched = textSched + "<strong>December 9</strong> - 7:00 PM<br />Christmas Program<br /><hr>"
numCount++}

if (currentDate < "2012-12-16" && numCount < numEvents)
{textSched = textSched + "<strong>December 16</strong> - 7:00 PM<br />Christmas Program<br /><hr>"
numCount++}

if (currentDate < "2012-12-20" && numCount < numEvents)
{textSched = textSched + "<strong>December 20</strong> - 11:30 AM<br />Senior Moments Lunch<br /><hr>"
numCount++}

if (currentDate < "2012-12-23" && numCount < numEvents)
{textSched = textSched + "<strong>December 23</strong> - 7:00 PM<br />Candle Light Communion<br /><hr>"
numCount++}

if (currentDate < "2012-12-26" && numCount < numEvents)
{textSched = textSched + "<strong>December 26</strong><br />No Evening Activities<br /><i>Merry Christmas</i><br /><hr>"
numCount++}

if (currentDate < "2012-12-30" && numCount < numEvents)
{textSched = textSched + "<strong>December 30</strong><br />No Evening Activities<br /><i>Happy New Year</i><br /><hr>"
numCount++}



textSched = textSched + "<i>Check here often for more events</i></p>";

document.writeln( textSched );

