// Función de mostrar la edad
function showAge() {
	var theDate = new Date();
	var theAge = (theDate.getYear()) - 81;
	if(theAge > 1900){
		theAge -= 1900;	
	}
	document.write(theAge);
}

this.showAge();