/*
This Function will change the number of days in a dropdown list.
Requires Prototype
Example code
the first param passed is always this.
Second Parameter is the ID of the Element that contains the Days
third is the element that contains the months
Fourth is the element that contains the years.

DaysInMonth(this,'ddl_DayOfBirth','ddl_MonthOfBirth','ddl_YearOfBirth');

*/
function DaysInMonth(Element,elmDayID,elmMonthID,elmYearID)
{
	//if((Element.id == elmYearID) && ($F(elmMonthID) != 2))
	//	return;
	$(elmDayID).options.length=0;
	$(elmDayID).options[0] = new Option('Day','');
	for (var i=1;i <= ((32 - new Date($F(elmYearID), ($F(elmMonthID) -1), 32).getDate()));i++)
		$(elmDayID).options[i] = new Option(i,i);
}