
      function populate(objForm,selectIndex) {
      timeA = new Date(objForm.year.options[objForm.year.selectedIndex].text, objForm.month.options[objForm.month.selectedIndex].value,1);
      timeDifference = timeA - 86400000;
      timeB = new Date(timeDifference);
      var daysInMonth = timeB.getDate();
      for (var i = 0; i < objForm.day.length; i++) {
      objForm.day.options[0] = null;
      }
      for (var i=0; i < daysInMonth; i++) {
      objForm.day.options[i] = new Option(i+1);
      }
      document.f1.day.options[0].selected = true;
      }
      function populate2(objForm,selectIndex) {
      timeA = new Date(objForm.year2.options[objForm.year2.selectedIndex].text, objForm.month2.options[objForm.month2.selectedIndex].value,1);
      timeDifference = timeA - 86400000;
      timeB = new Date(timeDifference);
      var daysInMonth = timeB.getDate();
      for (var i = 0; i < objForm.day2.length; i++) {
      objForm.day2.options[0] = null;
      }
      for (var i = 0; i < daysInMonth; i++) {
      objForm.day2.options[i] = new Option(i+1);
      }
      document.f1.day2.options[0].selected = true;
      }
      function getYears() {

      var years = new Array(2008,2009,2010,2011)

      for (var i = 0; i < document.f1.year.length; i++) {
      document.f1.year.options[0] = null;
      }
      timeC = new Date();
      currYear = timeC.getFullYear();
      for (var i = 0; i < years.length; i++) {
      document.f1.year.options[i] = new Option(years[i]);
      }
      document.f1.year.options[2].selected=true;
      }
      window.onLoad = getYears;
      //  End -->




