function datePopulate(yearDrop,monthDrop,dayDrop) {
	timeA = new Date(yearDrop.options[yearDrop.selectedIndex].text, monthDrop.options[monthDrop.selectedIndex].value,1);
	timeDifference = timeA - 86400000;
	timeB = new Date(timeDifference);
	var daysInMonth = timeB.getDate();
	for (var i = 0; i < dayDrop.length; i++) {
		dayDrop.options[0] = null;
	}
	for (var i = 0; i < daysInMonth; i++) {
		dayDrop.options[i] = new Option(i+1);
	}
	dayDrop.options[0].selected = true;
}
