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 (LeadingZeros33822 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33822(secs) { if (secs < 0) { document.getElementById("cntdwns33822").innerHTML = FinishMessages33822; return; } DisplayStrs33822 = DisplayFormats33822.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33822 = DisplayStrs33822.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33822 = DisplayStrs33822.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33822 = DisplayStrs33822.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33822").innerHTML = DisplayStrs33822; if (CountActives33822) //alert(SetTimeOutPeriods33822); setTimeout("CountBacks33822(" + (secs+CountSteppers33822) + ")", SetTimeOutPeriods33822); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33822)=="undefined") BackColors33822 = ""; if (typeof(ForeColors33822)=="undefined") ForeColors33822= "white"; if (typeof(TargetDates33822)=="undefined") TargetDates33822 = "04/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33822)=="undefined") DisplayFormats33822 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33822)=="undefined") CountActives33822 = true; if (typeof(FinishMessages33822)=="undefined") FinishMessages33822 = ""; if (typeof(CountSteppers33822)!="number") CountSteppers33822 = -1; if (typeof(LeadingZeros33822)=="undefined") LeadingZeros33822 = true; CountSteppers33822 = Math.ceil(CountSteppers33822); if (CountSteppers33822 == 0) CountActives33822 = false; var SetTimeOutPeriods33822 = (Math.abs(CountSteppers33822)-1)*1000 + 990; puti(BackColors33822, ForeColors33822); var dthens33822 = new Date(TargetDates33822); var dnows33822 = new Date("04/08/2026 8:30:52 PM"); if(CountSteppers33822>0) ddiffs33822 = new Date(dnows33822-dthens33822); else ddiffs33822 = new Date(dthens33822-dnows33822); gsecss33822 = Math.floor(ddiffs33822.valueOf()/1000); CountBacks33822(gsecss33822);