<!-- (hide script from old browsers) ----------------------------------
function displayStats(gender, bornMo, bornDay, bornYr) {
	// bornMo is 1-12, bornDay is 1-31, bornYr is 4-digit year
	today = new Date
	thisYr = today.getYear()
	if (thisYr >= 1900) thisYr = thisYr - 1900
	thisMonth = today.getMonth() + 1
	todayMonths = (thisYr * 12) + thisMonth
	born = new Date(bornYr,(bornMo - 1),bornDay)
	bornYear = born.getYear()
	if (bornYear >= 1900) bornYear = bornYear - 1900
	bornMonth = born.getMonth() + 1
	bornMonths = (bornYear * 12) + bornMonth
	ageMonths = todayMonths - bornMonths
	yearsOld = Math.floor(ageMonths / 12)
	monthsOld = ageMonths % 12
	document.write(gender + ", born " + bornMo + "/" + bornDay + "/" + bornYr + ", age = " + yearsOld + " years + " + monthsOld + " months")
}
// - (end hiding script from old browsers) ------------------------ -->
