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 (LeadingZeros33219 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33219(secs) { if (secs < 0) { document.getElementById("cntdwns33219").innerHTML = FinishMessages33219; return; } DisplayStrs33219 = DisplayFormats33219.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33219 = DisplayStrs33219.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33219 = DisplayStrs33219.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33219 = DisplayStrs33219.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33219").innerHTML = DisplayStrs33219; if (CountActives33219) //alert(SetTimeOutPeriods33219); setTimeout("CountBacks33219(" + (secs+CountSteppers33219) + ")", SetTimeOutPeriods33219); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33219)=="undefined") BackColors33219 = ""; if (typeof(ForeColors33219)=="undefined") ForeColors33219= "white"; if (typeof(TargetDates33219)=="undefined") TargetDates33219 = "12/19/2025 10:00:00 PM"; if (typeof(DisplayFormats33219)=="undefined") DisplayFormats33219 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33219)=="undefined") CountActives33219 = true; if (typeof(FinishMessages33219)=="undefined") FinishMessages33219 = ""; if (typeof(CountSteppers33219)!="number") CountSteppers33219 = -1; if (typeof(LeadingZeros33219)=="undefined") LeadingZeros33219 = true; CountSteppers33219 = Math.ceil(CountSteppers33219); if (CountSteppers33219 == 0) CountActives33219 = false; var SetTimeOutPeriods33219 = (Math.abs(CountSteppers33219)-1)*1000 + 990; puti(BackColors33219, ForeColors33219); var dthens33219 = new Date(TargetDates33219); var dnows33219 = new Date("12/16/2025 9:52:07 AM"); if(CountSteppers33219>0) ddiffs33219 = new Date(dnows33219-dthens33219); else ddiffs33219 = new Date(dthens33219-dnows33219); gsecss33219 = Math.floor(ddiffs33219.valueOf()/1000); CountBacks33219(gsecss33219);