// JavaScript Document
function age()
{myYearOfBirth = 1968;
yearOfBirth = prompt("What year were you born?", "");

if (yearOfBirth) {
    if (yearOfBirth == myYearOfBirth) {
        alert("You were born the same year as me!");
    } else if (yearOfBirth < myYearOfBirth) {
        alert("Hey, you're older and wiser than me, please have my seat, rest your legs!");
    } else {
        alert("You are younger than me, you missed Apollo 8 reaching the farside of the moon!");
    }
} else {
    alert("Why didn't you click OK?");
}
}