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 (LeadingZeros33007 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33007(secs) { if (secs < 0) { document.getElementById("cntdwns33007").innerHTML = FinishMessages33007; return; } DisplayStrs33007 = DisplayFormats33007.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33007 = DisplayStrs33007.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33007 = DisplayStrs33007.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33007 = DisplayStrs33007.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33007").innerHTML = DisplayStrs33007; if (CountActives33007) //alert(SetTimeOutPeriods33007); setTimeout("CountBacks33007(" + (secs+CountSteppers33007) + ")", SetTimeOutPeriods33007); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33007)=="undefined") BackColors33007 = ""; if (typeof(ForeColors33007)=="undefined") ForeColors33007= "white"; if (typeof(TargetDates33007)=="undefined") TargetDates33007 = "10/26/2025 10:00:00 PM"; if (typeof(DisplayFormats33007)=="undefined") DisplayFormats33007 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33007)=="undefined") CountActives33007 = true; if (typeof(FinishMessages33007)=="undefined") FinishMessages33007 = ""; if (typeof(CountSteppers33007)!="number") CountSteppers33007 = -1; if (typeof(LeadingZeros33007)=="undefined") LeadingZeros33007 = true; CountSteppers33007 = Math.ceil(CountSteppers33007); if (CountSteppers33007 == 0) CountActives33007 = false; var SetTimeOutPeriods33007 = (Math.abs(CountSteppers33007)-1)*1000 + 990; puti(BackColors33007, ForeColors33007); var dthens33007 = new Date(TargetDates33007); var dnows33007 = new Date("10/24/2025 8:22:32 AM"); if(CountSteppers33007>0) ddiffs33007 = new Date(dnows33007-dthens33007); else ddiffs33007 = new Date(dthens33007-dnows33007); gsecss33007 = Math.floor(ddiffs33007.valueOf()/1000); CountBacks33007(gsecss33007);