function DaysInMonth(Month, Year) {	var DaysInMonth = 31;	if (Month == "April" || Month == "June" || Month == "September" || Month == "November") DaysInMonth = 30;	if (Month == "February" && (Year/4) != Math.floor(Year/4)) DaysInMonth = 28;	if (Month == "February" && (Year/4) == Math.floor(Year/4)) DaysInMonth = 29;	return DaysInMonth;}function ChangeOptionDays() {	DaysObject = document.dateSelectForm.SelectDay;	MonthObject = document.dateSelectForm.SelectMonth;	YearObject = document.dateSelectForm.SelectYear;	Month = MonthObject[MonthObject.selectedIndex].text;	Year = YearObject[YearObject.selectedIndex].text; 	DaysForThisSelection = DaysInMonth(Month, Year); 	CurrentDaysInSelection = DaysObject.length;	if (CurrentDaysInSelection > DaysForThisSelection) {    	for (i=0; i<(CurrentDaysInSelection-DaysForThisSelection); i++) {      		DaysObject.options[DaysObject.options.length - 1] = null    	}  	}  	  	if (DaysForThisSelection > CurrentDaysInSelection) {    	for (i=0; i<(DaysForThisSelection-CurrentDaysInSelection); i++) {     		NewOption = new Option(DaysObject.options.length + 1);      		DaysObject.add(NewOption);    	}  	}  	    if (DaysObject.selectedIndex < 0) DaysObject.selectedIndex == 0;}function SetToToday(day,month) {		DaysObject = document.dateSelectForm.SelectDay;	MonthObject = document.dateSelectForm.SelectMonth;  	MonthObject[month].selected = true;	ChangeOptionDays();  	DaysObject[day-1].selected = true;}