function setcountdown(theyear,themonth,theday,thehour,themin,thesec){
	yr=theyear;mo=themonth;da=theday;hr=thehour;min=themin;sec=thesec;
}

setcountdown(2008,3,18,0,00,01);

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

function countdown(){
	var today=new Date();
	var todayy=today.getYear();
	if (todayy < 1000) {
		todayy+=1900;
	}
	var todaym=today.getMonth();
	var todayd=today.getDate();
	var todayh=today.getHours();
	var todaymin=today.getMinutes();
	var todaysec=today.getSeconds();
	var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
	futurestring=montharray[mo-1]+" "+da+", "+yr+" "+hr+":"+min+":"+sec;
	dd=Date.parse(futurestring)-Date.parse(todaystring);
	dday=Math.floor(dd/(60*60*1000*24)*1);
	dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
	dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
	dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
	
	return dday;
}

<!--
	
	
		
	
		//--------------------------------------------------
		// tag objet du flash
		MM_FlashCanPlay = false;
			
		// détection flash.
		// indiquer ici quel version l'usager doit avoir au minimum.
		
		var versionDemander = 5;
		
		// le lien pour telecharge la derniere version de FLASH.
		var Lien = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French&P6_Language=French";	
		
		// initialisation et ecritures des codes en VBScript pour Explorer.
		// ce code a ete teste sous PC: IE 5.5 IE 6, Netscape 4.7, Netscape 7
		//							MAC: IE: 5.1, Netscape 4.7
		
		MM_contentVersion   = versionDemander;
	
		
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		
		if ( plugin ) {
				var words = navigator.plugins["Shockwave Flash"].description.split(" ");
				for (var i = 0; i < words.length; ++i)
				{
					if (isNaN(parseInt(words[i])))
					continue;
					var MM_PluginVersion = words[i]; 
				}
				
		
				var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
				
				// se souvient de la version installer sur le poste
				if(!MM_FlashCanPlay) MM_contentVersion = MM_PluginVersion;
			
			
		}
		else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
		   && (navigator.appVersion.indexOf("Win") != -1)) {
		   
		   // boucle afin d'identifier la version de flash sur Explorer
		   // installer au niveau du poste.
		   // a revoir pour le coder en VBScript
		   
		   while(MM_FlashCanPlay != true && MM_contentVersion >=1) {
				document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
				document.write('on error resume next \n');
				document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
				document.write('</SCR' + 'IPT\> \n');
		
	
				if(MM_FlashCanPlay) {
					if(MM_contentVersion != versionDemander) MM_FlashCanPlay = false;
					break;
				}
				MM_contentVersion--;
			}
				
		}	
	
	
		
			
		//MM_FlashCanPlay
	
		
//-->
