function getCountdown() {
   // Returns the countdown of a given date in the future
   
   var dateNow = new Date();
   var dateFuture = new Date(2010, 3, 2, 22); // year, month-1, day, hour, seconds
   var text = "";
   
   var countdown = dateFuture.getTime() - dateNow.getTime();
   
   // Create date or text after countdown finished
   if(countdown > 0) {
      
      countdown = Math.floor(countdown / 1000);
      
      var days = Math.floor(countdown / 86400); // days
      countdown = countdown % 86400;
      
      var hours = Math.floor(countdown / 3600); // hours
      countdown = countdown % 3600;
      
      var minutes = Math.floor(countdown / 60); // minutes
      countdown = countdown % 60;
      
      var seconds = Math.floor(countdown); // seconds
      
      text = days + " D " + hours + " H " + minutes + " M " + seconds + " S";
   } else {
      text = "LIKE THERE IS NO TOMORROW";
   }
   
   // Update countdown
   var span = document.getElementById("countdown");
   
   if(span.hasChildNodes()) {
      span.firstChild.nodeValue = text;
   } else {
      var textNode = document.createTextNode(text);
      span.appendChild(textNode);
   }
   
   // Repeat (recursive)
   setTimeout ("getCountdown()", 1000);
}
