function populateList() {
   var monthArray = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
   var numForms = document.forms.length;
   if (numForms == 0) {
      return true;
   }
   for (var i = 0; i < numForms; i++) {
      if (document.forms[i].hCheckInMonth) {
         if (document.forms[i].hCheckInMonth.length > 1) { clearMonths(i, 1); }
         for (var j = 0; j < monthArray.length; j++) {             
             document.forms[i].hCheckInMonth.options[(j+1)] = new Option(monthArray[j], monthArray[j]);
             document.forms[i].hCheckOutMonth.options[(j+1)] = new Option(monthArray[j], monthArray[j]);
         }
         if (document.forms[i].hCheckInDay.length < 7) {
            for (var j = 1; j <= 31; j++) {
               document.forms[i].hCheckInDay.options[j] = new Option(j, j);
               document.forms[i].hCheckOutDay.options[j] = new Option(j, j);
            }
         } 
      }
   }
   return true;
}


function clearMonths(frmIdx, startIdx)
{
  var numDeletes = document.forms[frmIdx].hCheckInMonth.options.length - startIdx;
  while (numDeletes > 0)
  {
    document.forms[frmIdx].hCheckInMonth.options[startIdx] = null;
    document.forms[frmIdx].hCheckOutMonth.options[startIdx] = null;
    numDeletes--;
  }
  return;
}