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";*/
	
	startDates[0] = "02-16-2009";
	startDates[1] = "03-15-2010";
	startDates[2] = "04-12-2010";
	startDates[3] = "05-10-2010";
	startDates[4] = "06-7-2010";
	startDates[5] = "07-5-2010";
	startDates[6] = "08-2-2010";
	startDates[7] = "08-30-2010";
	startDates[8] = "09-27-2010";
	startDates[9] = "10-25-2010";
	startDates[10] = "11-22-2010";
	
	var startDatesText = new Array()
    startDatesText[0] = "February 16th";
	startDatesText[1] = "March 15th";
	startDatesText[2] = "April 12th";
	startDatesText[3] = "May 10th";
	startDatesText[4] = "June 7th";
	startDatesText[5] = "July 5th";
	startDatesText[6] = "August 2nd";
	startDatesText[7] = "August 30th";
	startDatesText[8] = "September 27th";
	startDatesText[9] = "October 25th";
	startDatesText[10] = "November 22nd";
	
	
	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 <= 9; 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 = "<br />Next Classes start <div style='margin-top:6px;' ></div>" + startDatesText[intX].toString();
       }      
    }

    //set the next start date text.
	document.getElementById("nextstartdate").innerHTML = nextStartDateText;
    //now format the rest of the page.
	//formatLeftNav();
	
}


function formatLeftNav()
{
return;
	//not used any longer.  replaced with format-pages.php include
	var currLocation = window.location.href.toLowerCase();
	var str = '<img src="images/800-622-2640.gif" alt="For a Faster Response, Call 800-622-2640" />';

	//this is the phone number image and alt text.
	if(currLocation.indexOf('index.php') > -1)
	{
		str = '<img src="images/800-339-0196.gif" alt="For a Faster Response, Call 800-339-0196" border="0" />';
	}
	else if(currLocation.indexOf('degree-programs.php') > -1)
	{
		str = '<img src="images/800-785-8571.gif" alt="For a Faster Response, Call 800-785-8571"    border="0"/>';	
	}
	else if(currLocation.indexOf('request-college-information.php') > -1)
	{
		str = '<img src="images/800-267-4869.gif" alt="For a Faster Response, Call 800-267-4869"   border="0" />';	
	}
	else if(currLocation.indexOf('college-admission.php') > -1)
	{
		str = '<img src="images/800-261-2861.gif" alt="For a Faster Response, Call 800-261-2861"    border="0"/>';	
	}
	else if(currLocation.indexOf('idaho-utah-college.php') > -1)
	{
		str = '<img src="images/800-233-1349.gif" alt="For a Faster Response, Call 800-233-1349"    border="0"/>';	
	}
	else
	{
		str = '<img src="images/800-622-2640.gif" alt="For a Faster Response, Call 800-622-2640"    border="0"/>';	
	}
	document.getElementById('phone-image').innerHTML = str;

}