document.write('
Nueva Cuenta Final Para el Estreno de ENIGMA
') function setcountdown(theyear,themonth,theday,thehour,theminute){ yr=theyear; mo=themonth; da=theday; ho=thehour; mi=theminute } setcountdown(2008,24,04,19,0) var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") var crosscount='' function start_countdown() { crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie countdown() } document.write('') window.onload=start_countdown 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+","+ho+":"+mi 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) //if on day of occasion if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da) { if (document.all||document.getElementById) crosscount.innerHTML="time out" return } //if passed day of occasion else if (dday<=-1) { if (document.all||document.getElementById) crosscount.innerHTML="time already passed! " return } //else, if not yet else { if (document.all||document.getElementById) crosscount.innerHTML=+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds" } setTimeout("countdown()",1000) } document.write('
To24/04/2008
')