// THIS MASTER ARRAY HOLDS THE FOUR COURSE DATE ARRAYScourseDatesArray = new Array();// THIS ARRAY HOLDS THE SFA/CPRC COURSE DATEScourseDatesArray[0] = new Array("Feb 18/19 - 9-5:30, 9-4:30 - Douglas College - NW", "Mar 17/18 - 9-5:30, 9-4:30 - Douglas College - NW", "Apr 21/22 - 9-5:30, 9-4:30 - Douglas College - NW", "May 26/27 - 9-5:30, 9-4:30 - Douglas College - NW", "July 14/15 - 9-5:30, 9-4:30 - Douglas College - NW");// THIS ARRAY HOLDS THE SFA/CPRHCP COURSE DATEScourseDatesArray[1] = new Array("Feb 18/19 - 9-5:30 - Douglas College - NW", "Mar 17/18 - 9-5:30 - Douglas College - NW", "Apr 21/22 - 9-5:30 - Douglas College - NW", "May 26/27 - 9-5:30 - Douglas College - NW", "July 14/15 - 9-5:30 - Douglas College - NW");// THIS ARRAY HOLDS THE EFA AND CPRC COURSE DATEScourseDatesArray[2] = new Array("Feb 18 - 9-5:30 - Douglas College - NW", "Mar 17 - 9-5:30 - Douglas College - NW", "Apr 21 - 9-5:30 - Douglas College - NW", "May 26 - 9-5:30 - Douglas College - NW", "July 14 - 9-5:30 - Douglas College - NW");// THIS ARRAY HOLDS THE HCP RECERT DATEScourseDatesArray[3] = new Array("Feb 9 from 6:30-9:30pm - Douglas College - COQ", "Mar 1 from 6:30-9:30pm - Douglas College - COQ", "Apr 11 from 6:30-9:30pm - Douglas College - COQ", "Apr 25 from 6:30-9:30pm - Douglas College - COQ", "May 8 from 6:30-9:30pm - Douglas College - COQ", "June 7 from 6:30-9:30pm - Douglas College - COQ", "June 13 from 6:30-9:30pm - Douglas College - COQ", "July 18 from 6:30-9:30pm - Douglas College - COQ", "Aug 16 from 6:30-9:30pm - Douglas College - COQ", "Aug 30 from 6:30-9:30pm - Douglas College - COQ");// THIS ARRAY HOLDS THE CHILDCARE DATEScourseDatesArray[4] = new Array("Jan 23/30 from 6:00 - 10:00pm - Ch Care Options - SRY", "Jan 28 from 9 - 5:30pm - Douglas College, NW", "Feb 4 from 9:00 - 5:30pm - Seymour Heights PPP - N VAN", "Feb 13/20 from 6:00 - 10:00pm - St Albans Daycare - BRY", "Feb 18 from 9:00 - 5:30pm - Queens Ave. Daycare. NW", "Feb 25 from 9:00 - 5:30pm - Glenbrooke Daycare - NWEST", "Feb 26/Mar 4 from 12:30-4:30pm - Westside Fam Pl. VAN", "Mar 3 from 9:00 - 5:30pm - Kids Zone - MRIDGE", "March 5 & 8 from 6 - 10pm at Brighouse Preschool, Richmond", "Mar 10 from 9 - 5:30pm - Douglas College, NW", "Mar 17 from 9:00 - 5:30pm - Ch Care Options - SRY", "Mar 24 from 9:00 - 5:30pm - Westcoast CCRR, Van", "April 21 from 9:00 - 5:30pm - Kiddies Korner - COQ", "May 5 from 9:00 - 5:30pm - Westcoast CCRR, Van", "May 12 from 9 - 5:30pm - Douglas College, NW", "May 17/24 from 6:00 - 10:00pm - Ch Care Options - SRY", "July 12/19 from 6:00 - 10:00pm - Ch Care Options - SRY", "July 21 from 9:00 - 5:30pm - Westcoast CCRR, Van", "Aug 25 from 9:00 - 5:30pm - Westcoast CCRR, Van");// THIS ARRAY HOLDS THE FAIR COURSE DATEScourseDatesArray[5] = new Array("None scheduled at this time.");function changeDates(inForm, courseList){  // DETERMINE WHICH COURSE IS SELECTED, AND LOAD ITS INDEX NUMBER INTO THE VARIABLE  // THESELECTEDCOURSE.  var theSelectedCourse = courseList.options[courseList.selectedIndex].index;      // DETERMINE HOW MANY DATES ARE CURRENTLY BEING DISPLAYED, AND LOAD THIS LENGTH  // INTO THE VARIABLE CURRENTDATELISTLENGTH.  var currentDateListLength = inForm.courseDates.options.length;      // CYCLE THROUGH THE DATE LIST, AND ELIMINATE ALL CURRENTLY DISPLAYED DATES.  THIS  // RESETS THE LIST FOR REDISPLAY  for(var i = 0; i < currentDateListLength; i++)  {	// EACH TIME IT GOES THROUGH THE LIST, IT REMOVES THE FIRST ELEMENT.  IF IT LOOPS	// FOR THE LENGTH OF THE LIST, IT WILL REMOVE ALL ELEMENTS!	inForm.courseDates.options[0] = null;  }      // DRAW OUT THE NEW COURSE DATE LIST TAKING THE LENGTH OF THE SELECTED COURSE ARRAY, AND THEN LOOPING THROUGH  // IT TO DRAW OUT THE LIST  for(var i = 0; i < courseDatesArray[theSelectedCourse].length; i++)  {	inForm.courseDates.options[i] = new Option(courseDatesArray[theSelectedCourse][i]);  }}
