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 (LeadingZeros33516 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33516(secs) { if (secs < 0) { document.getElementById("cntdwns33516").innerHTML = FinishMessages33516; return; } DisplayStrs33516 = DisplayFormats33516.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33516 = DisplayStrs33516.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33516 = DisplayStrs33516.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33516 = DisplayStrs33516.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33516").innerHTML = DisplayStrs33516; if (CountActives33516) //alert(SetTimeOutPeriods33516); setTimeout("CountBacks33516(" + (secs+CountSteppers33516) + ")", SetTimeOutPeriods33516); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33516)=="undefined") BackColors33516 = ""; if (typeof(ForeColors33516)=="undefined") ForeColors33516= "white"; if (typeof(TargetDates33516)=="undefined") TargetDates33516 = "02/12/2026 10:00:00 PM"; if (typeof(DisplayFormats33516)=="undefined") DisplayFormats33516 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33516)=="undefined") CountActives33516 = true; if (typeof(FinishMessages33516)=="undefined") FinishMessages33516 = ""; if (typeof(CountSteppers33516)!="number") CountSteppers33516 = -1; if (typeof(LeadingZeros33516)=="undefined") LeadingZeros33516 = true; CountSteppers33516 = Math.ceil(CountSteppers33516); if (CountSteppers33516 == 0) CountActives33516 = false; var SetTimeOutPeriods33516 = (Math.abs(CountSteppers33516)-1)*1000 + 990; puti(BackColors33516, ForeColors33516); var dthens33516 = new Date(TargetDates33516); var dnows33516 = new Date("02/10/2026 6:37:00 PM"); if(CountSteppers33516>0) ddiffs33516 = new Date(dnows33516-dthens33516); else ddiffs33516 = new Date(dthens33516-dnows33516); gsecss33516 = Math.floor(ddiffs33516.valueOf()/1000); CountBacks33516(gsecss33516);