Sunday...Partly sunny with scattered showers. Locally heavy rainfall possible. Highs 75 to 86. Northeast winds up to 10 mph shifting to the north late in the afternoon. Gusts up to 25 mph increasing to 30 mph late in the afternoon. Chance of rain 50 percent.
Monday...Mostly sunny with isolated showers in the morning... Then partly sunny with scattered showers in the afternoon. Highs 76 to 84. North winds around 10 mph shifting to the southwest up to 10 mph in the late morning and early afternoon...Then shifting to the east around 10 mph late in the afternoon. Chance of rain 50 percent.
Tuesday...Mostly sunny in the morning then becoming partly sunny. Scattered showers. Highs 76 to 84. Light winds. Chance of rain 50 percent.
Wednesday...Mostly sunny in the morning then becoming partly sunny. Scattered showers. Highs 76 to 86. Light winds. Chance of rain 50 percent.
Thursday...Partly sunny with scattered showers. Highs 76 to 87. Light winds becoming east around 10 mph in the late morning and afternoon. Chance of rain 50 percent.
Friday...Partly sunny. Isolated showers in the morning...Then scattered showers in the afternoon. Highs 76 to 87. East winds 10 to 15 mph. Chance of rain 30 percent.
Saturday...Mostly sunny with isolated showers. Highs 76 to 87. East winds 10 to 15 mph. Chance of rain 20 percent.
';
cal += '
';
cal += '
' + TR_start;
cal += '
';
cal += month_of_year[month] + ' ' + year + '' + TD_end + TR_end;
cal += TR_start;
///////////////////////////////////
// DO NOT EDIT BELOW THIS POINT //
///////////////////////////////////
// LOOPS FOR EACH DAY OF WEEK
for(index=0; index < DAYS_OF_WEEK; index++) {
// PRINTS DAY
cal += TD_start + day_of_week[index] + TD_end;
}
cal += TD_end + TR_end;
cal += TR_start;
// FILL IN BLANK GAPS UNTIL TODAY'S DAY
for(index=0; index < dateObj.getDay(); index++) {
cal += TD_start + ' ' + TD_end;
}
// LOOPS FOR EACH DAY IN CALENDAR
for(index=0; index < DAYS_OF_MONTH; index++) {
if( dateObj.getDate() > index ) {
// RETURNS THE NEXT DAY TO PRINT
week_day =dateObj.getDay();
// START NEW ROW FOR FIRST DAY OF WEEK
if(week_day == 0) {
cal += TR_start;
}
if(week_day != DAYS_OF_WEEK) {
// SET VARIABLE INSIDE LOOP FOR INCREMENTING PURPOSES
var day = dateObj.getDate();
// PRINTS DAY
cal += TD_start + "" + day + "" + TD_end;
}
// END ROW FOR LAST DAY OF WEEK
if(week_day == DAYS_OF_WEEK) {
cal += TR_end;
}
}
// INCREMENTS UNTIL END OF THE MONTH
dateObj.setDate(dateObj.getDate()+1);
}// end for loop
cal += '