 function checkDay(date) {     var day = date.getDay();     for (var i=0; i<peakStart.length; i++) {         if ((date > peakStart[i]) && (date < peakEnd[i])) {             return [(day == 0), ''];         } 