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 (LeadingZeros33121 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33121(secs) { if (secs < 0) { document.getElementById("cntdwns33121").innerHTML = FinishMessages33121; return; } DisplayStrs33121 = DisplayFormats33121.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33121 = DisplayStrs33121.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33121 = DisplayStrs33121.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33121 = DisplayStrs33121.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33121").innerHTML = DisplayStrs33121; if (CountActives33121) //alert(SetTimeOutPeriods33121); setTimeout("CountBacks33121(" + (secs+CountSteppers33121) + ")", SetTimeOutPeriods33121); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33121)=="undefined") BackColors33121 = ""; if (typeof(ForeColors33121)=="undefined") ForeColors33121= "white"; if (typeof(TargetDates33121)=="undefined") TargetDates33121 = "12/16/2025 10:00:00 PM"; if (typeof(DisplayFormats33121)=="undefined") DisplayFormats33121 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33121)=="undefined") CountActives33121 = true; if (typeof(FinishMessages33121)=="undefined") FinishMessages33121 = ""; if (typeof(CountSteppers33121)!="number") CountSteppers33121 = -1; if (typeof(LeadingZeros33121)=="undefined") LeadingZeros33121 = true; CountSteppers33121 = Math.ceil(CountSteppers33121); if (CountSteppers33121 == 0) CountActives33121 = false; var SetTimeOutPeriods33121 = (Math.abs(CountSteppers33121)-1)*1000 + 990; puti(BackColors33121, ForeColors33121); var dthens33121 = new Date(TargetDates33121); var dnows33121 = new Date("12/14/2025 4:33:00 AM"); if(CountSteppers33121>0) ddiffs33121 = new Date(dnows33121-dthens33121); else ddiffs33121 = new Date(dthens33121-dnows33121); gsecss33121 = Math.floor(ddiffs33121.valueOf()/1000); CountBacks33121(gsecss33121);