var nTime = new Date; 
var nYear = '2007';
var nMonth = '12';
var nDay = '21';
var nHour = '18';
var nMinute = '00';  
var nTarget = Date.UTC(nYear, nMonth-1, nDay, nHour, nMinute, 0, 0-3);

Tick(); 
if (document.all) 
   window.setInterval('Tick()', 1000); 
else 
   window.setTimeout('Tick()', 100); 

function Tick() 
{ 
   var dNow = new Date(); 
   nTime = nTarget - dNow.valueOf();    // milliseconds until target 
   if (nTime < 0) nTime = 0; 
   nTime = Math.floor(nTime / 1000);    // seconds until target 
   Display(document.cdDay1, document.cdDay0, 86400);    // seconds per day 
   Display(document.cdHour1, document.cdHour0, 3600);    // seconds per hour 
   Display(document.cdMinute1, document.cdMinute0, 60); // seconds per minute 
   Display(document.cdSecond1, document.cdSecond0, 1); // seconds per second 
   if (document.layers) 
       window.setTimeout('Tick()', 100); 
} 
    
function Display(el1, el0, nDivisor) 
{ 
   var nOnes; 
   var nValue = (nTime - (nTime %= nDivisor)) / nDivisor; 
   el1.src = "nmbr" + (nValue - (nOnes = nValue % 10)) / 10 + ".gif"; 
   el0.src = "nmbr" + nOnes + ".gif"; 
}
