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 (LeadingZeros33177 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33177(secs) { if (secs < 0) { document.getElementById("cntdwns33177").innerHTML = FinishMessages33177; return; } DisplayStrs33177 = DisplayFormats33177.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33177 = DisplayStrs33177.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33177 = DisplayStrs33177.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33177 = DisplayStrs33177.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33177").innerHTML = DisplayStrs33177; if (CountActives33177) //alert(SetTimeOutPeriods33177); setTimeout("CountBacks33177(" + (secs+CountSteppers33177) + ")", SetTimeOutPeriods33177); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33177)=="undefined") BackColors33177 = ""; if (typeof(ForeColors33177)=="undefined") ForeColors33177= "white"; if (typeof(TargetDates33177)=="undefined") TargetDates33177 = "12/17/2025 10:00:00 PM"; if (typeof(DisplayFormats33177)=="undefined") DisplayFormats33177 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33177)=="undefined") CountActives33177 = true; if (typeof(FinishMessages33177)=="undefined") FinishMessages33177 = ""; if (typeof(CountSteppers33177)!="number") CountSteppers33177 = -1; if (typeof(LeadingZeros33177)=="undefined") LeadingZeros33177 = true; CountSteppers33177 = Math.ceil(CountSteppers33177); if (CountSteppers33177 == 0) CountActives33177 = false; var SetTimeOutPeriods33177 = (Math.abs(CountSteppers33177)-1)*1000 + 990; puti(BackColors33177, ForeColors33177); var dthens33177 = new Date(TargetDates33177); var dnows33177 = new Date("03/04/2026 3:47:03 AM"); if(CountSteppers33177>0) ddiffs33177 = new Date(dnows33177-dthens33177); else ddiffs33177 = new Date(dthens33177-dnows33177); gsecss33177 = Math.floor(ddiffs33177.valueOf()/1000); CountBacks33177(gsecss33177);