function getNextStartDate()
{
   //this has to be hard coded because start date schedules could change.
   //It's not always a 28 day cycle.  In December / January it can change by 2 to 3 weeks.
    var startDates = new Array()

    startDates[0] = "12-7-2009";
	startDates[1] = "01-4-2010";
	startDates[2] = "02-1-2010";
	startDates[3] = "03-1-2010";
	startDates[4] = "03-29-2010";
	startDates[5] = "04-26-2010";
	
	
	var startDatesText = new Array()
    startDatesText[0] = "December 7th";
	startDatesText[1] = "January 4th";
	startDatesText[2] = "February 1st";
	startDatesText[3] = "March 1st";
	startDatesText[4] = "March 29th";
	startDatesText[5] = "April 26th";
	
	
	
	var intX;
    var nextStartDateText;
    var nextDate1 = new Date();
    var nextDate2 = new Date();
    var futureDate = new Date();
	var dates;
	
    futureDate.setDate(futureDate.getDate() + 35);    		
    
    //set the initial text for the default
    nextStartDateText = "Classes begin soon!"    

    for(intX = 0; intX <= 4; intX++)
    {
	   dates = startDates[intX].split('-');	   
       nextDate1 = new Date(dates[2],dates[0] - 1,dates[1]);  
	   dates = startDates[intX + 1].split('-');
       nextDate2 = new Date(dates[2],dates[0] - 1,dates[1]);  
       
    if (futureDate >= nextDate1 && futureDate < nextDate2)
       {
          nextStartDateText = "Next Classes start <br />" + startDatesText[intX].toString();
       }      
    }

    //set the next start date text.
	document.getElementById("nextstartdate").innerHTML = nextStartDateText;
   
	
}

