function countdown(year, month, day, hour, minute, format)
//function countdown( hour, minute, second, month, day, year,  format)
{
	 Today = new Date();
	 Todays_Year = Today.getFullYear();
	 Todays_Month = Today.getMonth();                  
	 var second = 0;
	 //Convert both today's date and the target date into miliseconds.                           
	 Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(), 
							 Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();                                 
	 Target_Date = (new Date(year, month - 1, day, hour, minute, second)).getTime();                  
	 
	 //Find their difference, and convert that into seconds.                  
	 Time_Left = Math.round((Target_Date - Todays_Date) / 1000);
	 
	 if(Time_Left < 0)
		 Time_Left = 0;
		 
	//More datailed.
	days = Math.floor(Time_Left / (60 * 60 * 24));
	Time_Left %= (60 * 60 * 24);
	hours = Math.floor(Time_Left / (60 * 60));
	Time_Left %= (60 * 60);
	minutes = Math.floor(Time_Left / 60);
	Time_Left %= 60;
	seconds = Time_Left;
		
	dps = 'en'; hps = 'en'; mps = 'en'; sps = 'en';
	//ps is short for plural suffix.
	if(days == 1) dps ='';
	if(hours == 1) hps ='';
	if(minutes <= 1) mps ='';
	if(seconds <= 1) sps ='';
	 switch(format)
	   {
	   case 0:
			//The simplest way to display the time left.
//			document.getElementById('countdown').innerHTML = "DE VOLGENDE SAMPLE SALE START OVER ";
			document.getElementById('countdown').innerHTML = '';
//			days >0 ? document.getElementById('countdown').innerHTML += "<b><span class='countNumber'>"+ days + "</span></b> <sub>DAG" + dps + '</sub> ' : '';
//			days >10 ? document.getElementById('countdown').innerHTML = days : document.getElementById('countdown').innerHTML='0'+days;
//			hours >0 ? document.getElementById('countdown').innerHTML += "<b><span class='countNumber'>" + hours + "</span></b> <sub>UR" + hps + '</sub> ' : '';
//			hours >10 ? document.getElementById('countdown2').innerHTML =  hours : document.getElementById('countdown2').innerHTML='0'+hours;
			minutes >0 ? document.getElementById('countdown').innerHTML +=  minutes + " minut" + mps :'';
			minutes <1 ? document.getElementById('countdown').innerHTML +=  seconds + " second" + sps : '';
			document.getElementById('countdown').innerHTML += " geldig";
			break;
	   case 1:
			document.getElementById('countdown').innerHTML = 'Nog ';
			//days >0 ? document.getElementById('countdown').innerHTML += days + " dag" + dps + ' ' : '';
			hours >0 ? document.getElementById('countdown').innerHTML += hours + " ur" + hps + ' ' : '';
			document.getElementById('countdown').innerHTML += minutes + " min" + mps+' open';
			//document.getElementById('countdown').innerHTML += " and <b><span class='countNumber'>"+ seconds + "</span></b> Second" + sps;
			break;
	   default: 
//			document.getElementById('countdown').innerHTML = Time_Left + ' seconds';
	   }
	 //Recursive call, keeps the clock ticking.
	 setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ',' + format + ');', 1000);
//	 setTimeout('countdown(' + hour + ',' + minute + ', ' + second + ',' + month + ',' + day + ',' + year + ',' + format + ');', 1000);
}