function loadDayMenu() { //Figure out how many days are in the month the user selected dateFirstDayOfNextMonth = new Date(formDatePicker.year.options [formDatePicker.year.selectedIndex].value, formDatePicker.month.options [formDatePicker.month.selectedIndex].value,1); //Note: There are 86400000 milliseconds in a day dateLastDayOfSelectedMonth = new Date(dateFirstDayOfNextMonth - 86400000); var iDaysInMonth = dateLastDayOfSelectedMonth.getDate(); //Remove all of the days currently listed on the day menu for (var i=0; i