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 (LeadingZeros33907 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33907(secs) { if (secs < 0) { document.getElementById("cntdwns33907").innerHTML = FinishMessages33907; return; } DisplayStrs33907 = DisplayFormats33907.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33907 = DisplayStrs33907.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33907 = DisplayStrs33907.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33907 = DisplayStrs33907.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33907").innerHTML = DisplayStrs33907; if (CountActives33907) //alert(SetTimeOutPeriods33907); setTimeout("CountBacks33907(" + (secs+CountSteppers33907) + ")", SetTimeOutPeriods33907); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33907)=="undefined") BackColors33907 = ""; if (typeof(ForeColors33907)=="undefined") ForeColors33907= "white"; if (typeof(TargetDates33907)=="undefined") TargetDates33907 = "05/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33907)=="undefined") DisplayFormats33907 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33907)=="undefined") CountActives33907 = true; if (typeof(FinishMessages33907)=="undefined") FinishMessages33907 = ""; if (typeof(CountSteppers33907)!="number") CountSteppers33907 = -1; if (typeof(LeadingZeros33907)=="undefined") LeadingZeros33907 = true; CountSteppers33907 = Math.ceil(CountSteppers33907); if (CountSteppers33907 == 0) CountActives33907 = false; var SetTimeOutPeriods33907 = (Math.abs(CountSteppers33907)-1)*1000 + 990; puti(BackColors33907, ForeColors33907); var dthens33907 = new Date(TargetDates33907); var dnows33907 = new Date("05/02/2026 7:52:17 PM"); if(CountSteppers33907>0) ddiffs33907 = new Date(dnows33907-dthens33907); else ddiffs33907 = new Date(dthens33907-dnows33907); gsecss33907 = Math.floor(ddiffs33907.valueOf()/1000); CountBacks33907(gsecss33907);