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 (LeadingZeros33147 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33147(secs) { if (secs < 0) { document.getElementById("cntdwns33147").innerHTML = FinishMessages33147; return; } DisplayStrs33147 = DisplayFormats33147.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33147 = DisplayStrs33147.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33147 = DisplayStrs33147.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33147 = DisplayStrs33147.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33147").innerHTML = DisplayStrs33147; if (CountActives33147) //alert(SetTimeOutPeriods33147); setTimeout("CountBacks33147(" + (secs+CountSteppers33147) + ")", SetTimeOutPeriods33147); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33147)=="undefined") BackColors33147 = ""; if (typeof(ForeColors33147)=="undefined") ForeColors33147= "white"; if (typeof(TargetDates33147)=="undefined") TargetDates33147 = "12/09/2025 10:00:00 PM"; if (typeof(DisplayFormats33147)=="undefined") DisplayFormats33147 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33147)=="undefined") CountActives33147 = true; if (typeof(FinishMessages33147)=="undefined") FinishMessages33147 = ""; if (typeof(CountSteppers33147)!="number") CountSteppers33147 = -1; if (typeof(LeadingZeros33147)=="undefined") LeadingZeros33147 = true; CountSteppers33147 = Math.ceil(CountSteppers33147); if (CountSteppers33147 == 0) CountActives33147 = false; var SetTimeOutPeriods33147 = (Math.abs(CountSteppers33147)-1)*1000 + 990; puti(BackColors33147, ForeColors33147); var dthens33147 = new Date(TargetDates33147); var dnows33147 = new Date("12/07/2025 7:07:28 AM"); if(CountSteppers33147>0) ddiffs33147 = new Date(dnows33147-dthens33147); else ddiffs33147 = new Date(dthens33147-dnows33147); gsecss33147 = Math.floor(ddiffs33147.valueOf()/1000); CountBacks33147(gsecss33147);