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 (LeadingZeros33824 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33824(secs) { if (secs < 0) { document.getElementById("cntdwns33824").innerHTML = FinishMessages33824; return; } DisplayStrs33824 = DisplayFormats33824.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33824 = DisplayStrs33824.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33824 = DisplayStrs33824.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33824 = DisplayStrs33824.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33824").innerHTML = DisplayStrs33824; if (CountActives33824) //alert(SetTimeOutPeriods33824); setTimeout("CountBacks33824(" + (secs+CountSteppers33824) + ")", SetTimeOutPeriods33824); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33824)=="undefined") BackColors33824 = ""; if (typeof(ForeColors33824)=="undefined") ForeColors33824= "white"; if (typeof(TargetDates33824)=="undefined") TargetDates33824 = "04/05/2026 10:00:00 PM"; if (typeof(DisplayFormats33824)=="undefined") DisplayFormats33824 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33824)=="undefined") CountActives33824 = true; if (typeof(FinishMessages33824)=="undefined") FinishMessages33824 = ""; if (typeof(CountSteppers33824)!="number") CountSteppers33824 = -1; if (typeof(LeadingZeros33824)=="undefined") LeadingZeros33824 = true; CountSteppers33824 = Math.ceil(CountSteppers33824); if (CountSteppers33824 == 0) CountActives33824 = false; var SetTimeOutPeriods33824 = (Math.abs(CountSteppers33824)-1)*1000 + 990; puti(BackColors33824, ForeColors33824); var dthens33824 = new Date(TargetDates33824); var dnows33824 = new Date("04/03/2026 5:23:35 AM"); if(CountSteppers33824>0) ddiffs33824 = new Date(dnows33824-dthens33824); else ddiffs33824 = new Date(dthens33824-dnows33824); gsecss33824 = Math.floor(ddiffs33824.valueOf()/1000); CountBacks33824(gsecss33824);