function compareDates (value1, value2){
   var date1, date2;
   var month1, month2;
   var year1, year2;
   

   month1 = value1.substring (0, value1.indexOf ("-"));
   date1 = value1.substring (value1.indexOf ("-")+1, value1.lastIndexOf ("-"));
   year1 = value1.substring (value1.lastIndexOf ("-")+1, value1.length);

   month2 = value2.substring (0, value2.indexOf ("-"));
   date2 = value2.substring (value2.indexOf ("-")+1, value2.lastIndexOf ("-"));
   year2 = value2.substring (value2.lastIndexOf ("-")+1, value2.length);

   if (year1 > year2) return 1;
   else if (year1 < year2) return -1;
   else if (month1 > month2) return 1;
   else if (month1 < month2) return -1;
   else if (date1 > date2) return 1;
   else if (date1 < date2) return -1;
   else return 0;
   } 


    var todaysDate = new Date()
	
    var currentYear = todaysDate.getFullYear()
    var currentMonth = todaysDate.getMonth() + 1
    var currentDay = todaysDate.getDate()
	
    var x,y
    var temp    
    var dateArray = new Array()
         dateArray[0]='01-14-2010'
         dateArray[1]='02-11-2010'
         dateArray[2]='03-11-2010'
         dateArray[3]='04-08-2010'
         dateArray[4]='05-13-2010'
         dateArray[5]='06-10-2010'
         dateArray[6]='07-01-2010'
         dateArray[7]='08-19-2010'
         dateArray[8]='09-09-2010'
         dateArray[9]='10-07-2010'
         dateArray[10]='11-11-2010'
         dateArray[11]='12-09-2010'

	
       if (currentDay < 10 )
	{ var sCurrentDay = "0" + currentDay.toString()}
       else
	{ var sCurrentDay = currentDay.toString()}
       if (currentMonth < 10 )
	{ var sCurrentMonth = "0" + currentMonth .toString()}
      else
	{ var sCurrentMonth = currentMonth .toString()}

    var sToday = sCurrentMonth + "-" + sCurrentDay + "-" + currentYear.toString()  
  
  // Array of meeting location
  // Match text with month from above
   var locationArray = new Array()
        locationArray[0]=' at the Salina Civic Center'
        locationArray[1]=' at the Salina Civic Center'
        locationArray[2]=' at the Salina Civic Center'
        locationArray[3]=' at the Salina Civic Center'
        locationArray[4]=' at the Salina Civic Center'
        locationArray[5]=' Picnic @ Clay Park Central (next to YMCA on Wetzel Road)'
        locationArray[6]=' No Roundtable in July'
        locationArray[7]=' at the Salina Civic Center'
        locationArray[8]=' at the Salina Civic Center'
        locationArray[9]=' at the Salina Civic Center'
        locationArray[10]=' at the Salina Civic Center'
        locationArray[11]=' at the Salina Civic Center'

  // Array of Month Abrev
  var  monthArray = new Array()
         monthArray[0] = 'xxx'
         monthArray[1] = 'Jan '
         monthArray[2] = 'Feb '
         monthArray[3] = 'March '
         monthArray[4] = 'April '
         monthArray[5] = 'May '
         monthArray[6] = 'June '
         monthArray[7] = 'July '
         monthArray[8] = 'Aug '
         monthArray[9] = 'Sept '
         monthArray[10] = 'Oct '
         monthArray[11] = 'Nov '
         monthArray[12] = 'Dec '
       
       
    for (x in         dateArray)
    {       
      temp = compareDates(        dateArray [x],sToday)
	if (temp==1||temp==0){break}
	{
	 
	} 
	
    }
	
             var str = dateArray[x].split("-")
             document.write(monthArray[parseInt(str[0],10)])   
	document.write(str[1] + " ") 
               document.write(str[2])            
                document.write("<br>")
    	document.write(locationArray[x])
	
