<!--
// date populating function
function datePopulator(formId) {
	var date = new Date();
	var tomorrow = date.getDate();
	var month = date.getMonth();
	var yy = date.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var theForm = document.forms[formId];
	
	var maxDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	if((year % 4) == 0) maxDays[1] = 29;
	
	if(tomorrow + 1 == maxDays[month] + 1) { tomorrow = 0; month++; }
	if(month == 12) { month = 0; year++; }
	
	theForm.startDay.options[tomorrow].selected = true;
	theForm.startMonth.options[month].selected = true;
	for(var i=0; i < theForm.startYear.length; i++) {
		if(theForm.startYear.options[i].text == year) {
			theForm.startYear.options[i].selected = true;
			break;
		}
	}
}

window.onload = function () {
	datePopulator('popdate');
}

// -->
