function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros33884 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33884(secs) { if (secs < 0) { document.getElementById("cntdwns33884").innerHTML = FinishMessages33884; return; } DisplayStrs33884 = DisplayFormats33884.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33884 = DisplayStrs33884.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33884 = DisplayStrs33884.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33884 = DisplayStrs33884.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33884").innerHTML = DisplayStrs33884; if (CountActives33884) //alert(SetTimeOutPeriods33884); setTimeout("CountBacks33884(" + (secs+CountSteppers33884) + ")", SetTimeOutPeriods33884); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33884)=="undefined") BackColors33884 = ""; if (typeof(ForeColors33884)=="undefined") ForeColors33884= "white"; if (typeof(TargetDates33884)=="undefined") TargetDates33884 = "04/12/2026 10:00:00 PM"; if (typeof(DisplayFormats33884)=="undefined") DisplayFormats33884 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33884)=="undefined") CountActives33884 = true; if (typeof(FinishMessages33884)=="undefined") FinishMessages33884 = ""; if (typeof(CountSteppers33884)!="number") CountSteppers33884 = -1; if (typeof(LeadingZeros33884)=="undefined") LeadingZeros33884 = true; CountSteppers33884 = Math.ceil(CountSteppers33884); if (CountSteppers33884 == 0) CountActives33884 = false; var SetTimeOutPeriods33884 = (Math.abs(CountSteppers33884)-1)*1000 + 990; puti(BackColors33884, ForeColors33884); var dthens33884 = new Date(TargetDates33884); var dnows33884 = new Date("04/09/2026 10:32:17 PM"); if(CountSteppers33884>0) ddiffs33884 = new Date(dnows33884-dthens33884); else ddiffs33884 = new Date(dthens33884-dnows33884); gsecss33884 = Math.floor(ddiffs33884.valueOf()/1000); CountBacks33884(gsecss33884);