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 (LeadingZeros33844 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33844(secs) { if (secs < 0) { document.getElementById("cntdwns33844").innerHTML = FinishMessages33844; return; } DisplayStrs33844 = DisplayFormats33844.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33844 = DisplayStrs33844.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33844 = DisplayStrs33844.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33844 = DisplayStrs33844.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33844").innerHTML = DisplayStrs33844; if (CountActives33844) //alert(SetTimeOutPeriods33844); setTimeout("CountBacks33844(" + (secs+CountSteppers33844) + ")", SetTimeOutPeriods33844); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33844)=="undefined") BackColors33844 = ""; if (typeof(ForeColors33844)=="undefined") ForeColors33844= "white"; if (typeof(TargetDates33844)=="undefined") TargetDates33844 = "04/15/2026 10:00:00 PM"; if (typeof(DisplayFormats33844)=="undefined") DisplayFormats33844 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33844)=="undefined") CountActives33844 = true; if (typeof(FinishMessages33844)=="undefined") FinishMessages33844 = ""; if (typeof(CountSteppers33844)!="number") CountSteppers33844 = -1; if (typeof(LeadingZeros33844)=="undefined") LeadingZeros33844 = true; CountSteppers33844 = Math.ceil(CountSteppers33844); if (CountSteppers33844 == 0) CountActives33844 = false; var SetTimeOutPeriods33844 = (Math.abs(CountSteppers33844)-1)*1000 + 990; puti(BackColors33844, ForeColors33844); var dthens33844 = new Date(TargetDates33844); var dnows33844 = new Date("05/01/2026 7:45:58 PM"); if(CountSteppers33844>0) ddiffs33844 = new Date(dnows33844-dthens33844); else ddiffs33844 = new Date(dthens33844-dnows33844); gsecss33844 = Math.floor(ddiffs33844.valueOf()/1000); CountBacks33844(gsecss33844);