function countdown(year, month, day, hour, minute, format)
         {
         Today = new Date();
         TodaysYear = Today.getFullYear();
         TodaysMonth = Today.getMonth();                  
         
         //Convert both today's date and the target date into miliseconds.                           
         TodaysDate = (new Date(TodaysYear, TodaysMonth, Today.getDate(), 
                                 Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();                                 
         TargetDate = (new Date(year, month, day, hour, minute, 00)).getTime();                  
         
         //Find their difference, and convert that into seconds.                  
         TimeLeft = Math.round((TargetDate - TodaysDate) / 1000);
         
         if(TimeLeft < 0)
            TimeLeft = 0;
         
       
		//More datailed.
		days = Math.floor(TimeLeft / (60 * 60 * 24));
		TimeLeft %= (60 * 60 * 24);
		hours = Math.floor(TimeLeft / (60 * 60));
		TimeLeft %= (60 * 60);
		minutes = Math.floor(TimeLeft / 60);
		TimeLeft %= 60;
		seconds = TimeLeft;
		
		//dps = 's'; hps = 's'; mps = 's'; sps = 's';
//		dps = 's'; hps = ''; mps = ''; sps = '';
		//ps is short for plural suffix.
		if(days<10) days ='0'+days;
		if(hours<10) hours ='0'+hours;
		if(minutes<10) minutes ='0'+minutes;
		if(seconds<10) seconds ='0'+seconds;
		
		 document.getElementById('day').innerHTML = days;
		 document.getElementById('hour').innerHTML = hours;
		 document.getElementById('min').innerHTML = minutes;
		 document.getElementById('sec').innerHTML = seconds;
       
	           
         //Recursive call, keeps the clock ticking.
         setTimeout('countdown("' + year + '",' + month + ',' + day + ',' + hour + ',' + minute + ',' + format + ');', 1000);
         }