<!-- Get birthday and current dates
birthTime = new Date("July 2, 1999 02:57:34")
todaysTime = new Date();

<!-- Parse out specific date values
todaysYear = todaysTime.getFullYear()
todaysMonth = todaysTime.getMonth()
todaysDate = todaysTime.getDate()
todaysHour = todaysTime.getHours()
todaysMinute = todaysTime.getMinutes()
todaysSecond = todaysTime.getSeconds()
birthYear = birthTime.getFullYear()
birthMonth = birthTime.getMonth()
birthDate = birthTime.getDate()
birthHour = birthTime.getHours()
birthMinute = birthTime.getMinutes()
birthSecond = birthTime.getSeconds()

<!-- Adjusts for Leap Year Info
if ((todaysYear / 4) == (Math.round(todaysYear / 4))) {
   countLeap = 29}
else {countLeap = 28}

<!-- Calculate the days in the month
if (todaysMonth == 2) {countMonth = countLeap}
else {
     if (todaysMonth == 4) {countMonth = 30}
     else {
     if (todaysMonth == 6) {countMonth = 30}
     else {
     if (todaysMonth == 9) {countMonth = 30}
     else {
     if (todaysMonth == 11) {countMonth = 30}
     else {countMonth = 31}
}}}}

<!-- Doing the subtactions
if (todaysMinute > birthMinute) {
   diffMinute = todaysMinute - birthMinute
   calcHour = 0}
else {
   diffMinute = todaysMinute + 60 - birthMinute
   calcHour = -1}
if (todaysHour > birthHour) {
   diffHour = todaysHour - birthHour + calcHour
   calcDate = 0}
else {
   diffHour = todaysHour + 24 - birthHour  + calcHour
   calcDate = -1}
if (todaysDate > birthDate) {
   diffDate = todaysDate - birthDate + calcDate
   calcMonth = 0}
else {
   diffDate = todaysDate + countMonth - birthDate  + calcDate
   calcMonth = -1}
if (todaysMonth > birthMonth) {
   diffMonth = todaysMonth - birthMonth + calcMonth
   calcYear = 0}
else {
   diffMonth = todaysMonth + 12 - birthMonth + calcMonth
   calcYear = -1}
diffYear = todaysYear - birthYear + calcYear

<!-- Making sure it all adds up correctly
if (diffMinute == 60) {
   diffMinute = 0
   diffHour = diffHour + 1}
if (diffHour == 24) {
   diffHour = 0
   diffDate = diffDate + 1}
if (diffDate == countMonth) {
   diffDate = 0
   diffMonth = diffMonth + 1}
if (diffMonth == 12) {
   diffMonth = 0
   diffYear = diffYear + 1}

<!-- drop plurals if data = 1
dy = (diffYear==0   ? "" : (diffYear==1   ? " 1 year, "   : diffYear   + " years, "));
dm = (diffMonth==0  ? "" : (diffMonth==1  ? " 1 month, "  : diffMonth  + " months, "));
dd = (diffDate ==0  ? "" : (diffDate==1   ? " 1 day, "    : diffDate   + " days, " ));
dh = (diffHour==0   ? "" : (diffHour==1   ? " 1 hour, "   : diffHour   + " hours, "));
di = (diffMinute==0 ? "" : (diffMinute==1 ? " 1 minute, " : diffMinute + " minutes, "));
ss = todaysSecond;
ds = (ss==0 ? "" : (ss==1 ? " 1 second" : ss + " seconds"));

<!-- Writing the values
document.write("SpecForce.net has been online for ");
document.write(dy + dm + dd + dh + di + ds);
// -->
