function PopulateDays(trgtId,yearId,monthId) {
	var trgt = document.getElementById(trgtId);
	var year = document.getElementById(yearId).value;
	var month = document.getElementById(monthId).value;

	month = month - 1;
	var theDate = new Date(year,month,1);
	var theOption;
	while(trgt.options.length > 1) trgt.options.remove(1);
	while(theDate.getMonth() == month) {
		theOption = document.createElement("option");
		theOption.text = theDate.getDate();
		theOption.value = theDate.getDate();
		trgt.options.add(theOption);
		theDate.setDate(theDate.getDate() + 1);
	}
}
