<!--// code written by JCM 10/20/02 //-->
<!--//
//*************************************************************************
var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
      
function alterDays(dropDown){
whichDD = dropDown + "_DD";
whichMM = dropDown + "_MM";
whichYYYY = dropDown + "_YYYY";
yearArray = eval("document.form." + whichYYYY + ".selectedIndex");
year = eval("document.form." + whichYYYY + ".options[yearArray].value");
numMonths = daysInMonth[eval("document.form." + whichMM + ".selectedIndex")];
if(numMonths == 28)numMonths=(((0 == year % 4) && (0 != (year % 100)) || (0 == year % 400)) ? 29:28);
optionValue = 0;

eval("document.form." + whichDD + ".options.length = 0"); //resets the DD choices
for(x=0; x<numMonths; x++){ //new DD values are placed in
  optionValue = optionValue + 1;
if (optionValue<10)finalValue = ("0" + optionValue); 
else finalValue = optionValue;
   optionObj = new Option([finalValue], [finalValue]);
   eval("document.form." + whichDD + ".options[x] = optionObj");   
}
if(NS)history.go(0);
}
//-->
