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 (LeadingZeros33587 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33587(secs) { if (secs < 0) { document.getElementById("cntdwns33587").innerHTML = FinishMessages33587; return; } DisplayStrs33587 = DisplayFormats33587.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33587 = DisplayStrs33587.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33587 = DisplayStrs33587.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33587 = DisplayStrs33587.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33587").innerHTML = DisplayStrs33587; if (CountActives33587) //alert(SetTimeOutPeriods33587); setTimeout("CountBacks33587(" + (secs+CountSteppers33587) + ")", SetTimeOutPeriods33587); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33587)=="undefined") BackColors33587 = ""; if (typeof(ForeColors33587)=="undefined") ForeColors33587= "white"; if (typeof(TargetDates33587)=="undefined") TargetDates33587 = "02/26/2026 10:00:00 PM"; if (typeof(DisplayFormats33587)=="undefined") DisplayFormats33587 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33587)=="undefined") CountActives33587 = true; if (typeof(FinishMessages33587)=="undefined") FinishMessages33587 = ""; if (typeof(CountSteppers33587)!="number") CountSteppers33587 = -1; if (typeof(LeadingZeros33587)=="undefined") LeadingZeros33587 = true; CountSteppers33587 = Math.ceil(CountSteppers33587); if (CountSteppers33587 == 0) CountActives33587 = false; var SetTimeOutPeriods33587 = (Math.abs(CountSteppers33587)-1)*1000 + 990; puti(BackColors33587, ForeColors33587); var dthens33587 = new Date(TargetDates33587); var dnows33587 = new Date("02/24/2026 2:45:07 AM"); if(CountSteppers33587>0) ddiffs33587 = new Date(dnows33587-dthens33587); else ddiffs33587 = new Date(dthens33587-dnows33587); gsecss33587 = Math.floor(ddiffs33587.valueOf()/1000); CountBacks33587(gsecss33587);