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 (LeadingZeros33118 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33118(secs) { if (secs < 0) { document.getElementById("cntdwns33118").innerHTML = FinishMessages33118; return; } DisplayStrs33118 = DisplayFormats33118.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33118 = DisplayStrs33118.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33118 = DisplayStrs33118.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33118 = DisplayStrs33118.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33118").innerHTML = DisplayStrs33118; if (CountActives33118) //alert(SetTimeOutPeriods33118); setTimeout("CountBacks33118(" + (secs+CountSteppers33118) + ")", SetTimeOutPeriods33118); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33118)=="undefined") BackColors33118 = ""; if (typeof(ForeColors33118)=="undefined") ForeColors33118= "white"; if (typeof(TargetDates33118)=="undefined") TargetDates33118 = "12/08/2025 10:00:00 PM"; if (typeof(DisplayFormats33118)=="undefined") DisplayFormats33118 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33118)=="undefined") CountActives33118 = true; if (typeof(FinishMessages33118)=="undefined") FinishMessages33118 = ""; if (typeof(CountSteppers33118)!="number") CountSteppers33118 = -1; if (typeof(LeadingZeros33118)=="undefined") LeadingZeros33118 = true; CountSteppers33118 = Math.ceil(CountSteppers33118); if (CountSteppers33118 == 0) CountActives33118 = false; var SetTimeOutPeriods33118 = (Math.abs(CountSteppers33118)-1)*1000 + 990; puti(BackColors33118, ForeColors33118); var dthens33118 = new Date(TargetDates33118); var dnows33118 = new Date("12/06/2025 3:04:05 PM"); if(CountSteppers33118>0) ddiffs33118 = new Date(dnows33118-dthens33118); else ddiffs33118 = new Date(dthens33118-dnows33118); gsecss33118 = Math.floor(ddiffs33118.valueOf()/1000); CountBacks33118(gsecss33118);