Title: Page 331 Steps 3 and 4
Course: Intermediate Web Programming (25436)

calendarWin.document.write("<tr><td colspan='7' align='center'><strong>"
+ monthArray[month] + " " +
dateObject.getFullYear() + "</strong></td></tr>");

if (whichMonth == -1)
dateObject.setMonth(dateObject.getMonth() - 1);
else if (whichMonth == 1)
dateObject.setMonth(dateObject.getMonth() + 1);

var month = dateObject.getMonth();
calendarWin.document.write("<tr><td colspan='2'> <a href= ' ' "
+ " onclick = 'self.opener.displayCalendar(-1); return false'>Previous</a></td>"
+ " <td colspan = '3' align = 'center'><strong>"
+ monthArray[month] + " " + dateObject.getFullYear()
+ "</strong></td><td colspan = '2' align='right'>"
+ "<a href='' onclick='self.opener.displayCalendar(1); return false'>"
+ "Next</a></td></tr>");