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 (LeadingZeros33009 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33009(secs) { if (secs < 0) { document.getElementById("cntdwns33009").innerHTML = FinishMessages33009; return; } DisplayStrs33009 = DisplayFormats33009.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33009 = DisplayStrs33009.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33009 = DisplayStrs33009.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33009 = DisplayStrs33009.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33009").innerHTML = DisplayStrs33009; if (CountActives33009) //alert(SetTimeOutPeriods33009); setTimeout("CountBacks33009(" + (secs+CountSteppers33009) + ")", SetTimeOutPeriods33009); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33009)=="undefined") BackColors33009 = ""; if (typeof(ForeColors33009)=="undefined") ForeColors33009= "white"; if (typeof(TargetDates33009)=="undefined") TargetDates33009 = "10/28/2025 10:00:00 PM"; if (typeof(DisplayFormats33009)=="undefined") DisplayFormats33009 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33009)=="undefined") CountActives33009 = true; if (typeof(FinishMessages33009)=="undefined") FinishMessages33009 = ""; if (typeof(CountSteppers33009)!="number") CountSteppers33009 = -1; if (typeof(LeadingZeros33009)=="undefined") LeadingZeros33009 = true; CountSteppers33009 = Math.ceil(CountSteppers33009); if (CountSteppers33009 == 0) CountActives33009 = false; var SetTimeOutPeriods33009 = (Math.abs(CountSteppers33009)-1)*1000 + 990; puti(BackColors33009, ForeColors33009); var dthens33009 = new Date(TargetDates33009); var dnows33009 = new Date("10/27/2025 2:23:51 AM"); if(CountSteppers33009>0) ddiffs33009 = new Date(dnows33009-dthens33009); else ddiffs33009 = new Date(dthens33009-dnows33009); gsecss33009 = Math.floor(ddiffs33009.valueOf()/1000); CountBacks33009(gsecss33009);