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 (LeadingZeros33238 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33238(secs) { if (secs < 0) { document.getElementById("cntdwns33238").innerHTML = FinishMessages33238; return; } DisplayStrs33238 = DisplayFormats33238.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33238 = DisplayStrs33238.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33238 = DisplayStrs33238.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33238 = DisplayStrs33238.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33238").innerHTML = DisplayStrs33238; if (CountActives33238) //alert(SetTimeOutPeriods33238); setTimeout("CountBacks33238(" + (secs+CountSteppers33238) + ")", SetTimeOutPeriods33238); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33238)=="undefined") BackColors33238 = ""; if (typeof(ForeColors33238)=="undefined") ForeColors33238= "white"; if (typeof(TargetDates33238)=="undefined") TargetDates33238 = "01/01/2026 10:00:00 PM"; if (typeof(DisplayFormats33238)=="undefined") DisplayFormats33238 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33238)=="undefined") CountActives33238 = true; if (typeof(FinishMessages33238)=="undefined") FinishMessages33238 = ""; if (typeof(CountSteppers33238)!="number") CountSteppers33238 = -1; if (typeof(LeadingZeros33238)=="undefined") LeadingZeros33238 = true; CountSteppers33238 = Math.ceil(CountSteppers33238); if (CountSteppers33238 == 0) CountActives33238 = false; var SetTimeOutPeriods33238 = (Math.abs(CountSteppers33238)-1)*1000 + 990; puti(BackColors33238, ForeColors33238); var dthens33238 = new Date(TargetDates33238); var dnows33238 = new Date("12/29/2025 1:23:00 PM"); if(CountSteppers33238>0) ddiffs33238 = new Date(dnows33238-dthens33238); else ddiffs33238 = new Date(dthens33238-dnows33238); gsecss33238 = Math.floor(ddiffs33238.valueOf()/1000); CountBacks33238(gsecss33238);