function getTime() {
 now = new Date();
 wedding = new Date("Mar 24 2001 13:02:00");
 if (now > wedding) {
  temp = now
  now = wedding
  wedding = temp
  var msg = "We've been married for  "
 }
 else {
  var msg = "We're getting married in "
 }
 days = (wedding - now) / 1000 / 60 / 60 / 24;
 daysRound = Math.floor(days);
 hours = (wedding - now) / 1000 / 60 / 60 - (24 * daysRound);
 hoursRound = Math.floor(hours);
 minutes = (wedding - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
 minutesRound = Math.floor(minutes);
 seconds = (wedding - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
 secondsRound = Math.round(seconds);
 sec = (secondsRound == 1) ? " second." : " seconds.";
 min = (minutesRound == 1) ? " minute, " : " minutes, ";
 hr = (hoursRound == 1) ? " hour, " : " hours, ";
 dy = (daysRound == 1)  ? " day, " : " days, "
 if (daysRound > 0) {
  msg += daysRound  + dy 
 }
 if (hoursRound > 0) {
  msg += hoursRound + hr 
 }
 if (minutesRound > 0) {
  msg += minutesRound + min 
 }
 if (secondsRound > 0) {
  msg += secondsRound + sec
 }
 document.timeForm.input1.value = msg 
 newtime = window.setTimeout("getTime();", 1000);
}
document.write('<P align=center><form name=timeForm><input type=text size=80 name=input1 border-style="none" style="border-bottom: 0px solid; border-left: 0px solid;border-right: 0px solid;border-top: 0px solid;font: verdana navy"></form></p>')


