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 (LeadingZeros33216 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33216(secs) { if (secs < 0) { document.getElementById("cntdwns33216").innerHTML = FinishMessages33216; return; } DisplayStrs33216 = DisplayFormats33216.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33216 = DisplayStrs33216.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33216 = DisplayStrs33216.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33216 = DisplayStrs33216.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33216").innerHTML = DisplayStrs33216; if (CountActives33216) //alert(SetTimeOutPeriods33216); setTimeout("CountBacks33216(" + (secs+CountSteppers33216) + ")", SetTimeOutPeriods33216); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33216)=="undefined") BackColors33216 = ""; if (typeof(ForeColors33216)=="undefined") ForeColors33216= "white"; if (typeof(TargetDates33216)=="undefined") TargetDates33216 = "12/11/2025 10:00:00 PM"; if (typeof(DisplayFormats33216)=="undefined") DisplayFormats33216 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33216)=="undefined") CountActives33216 = true; if (typeof(FinishMessages33216)=="undefined") FinishMessages33216 = ""; if (typeof(CountSteppers33216)!="number") CountSteppers33216 = -1; if (typeof(LeadingZeros33216)=="undefined") LeadingZeros33216 = true; CountSteppers33216 = Math.ceil(CountSteppers33216); if (CountSteppers33216 == 0) CountActives33216 = false; var SetTimeOutPeriods33216 = (Math.abs(CountSteppers33216)-1)*1000 + 990; puti(BackColors33216, ForeColors33216); var dthens33216 = new Date(TargetDates33216); var dnows33216 = new Date("12/08/2025 11:17:06 PM"); if(CountSteppers33216>0) ddiffs33216 = new Date(dnows33216-dthens33216); else ddiffs33216 = new Date(dthens33216-dnows33216); gsecss33216 = Math.floor(ddiffs33216.valueOf()/1000); CountBacks33216(gsecss33216);