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 (LeadingZeros33166 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33166(secs) { if (secs < 0) { document.getElementById("cntdwns33166").innerHTML = FinishMessages33166; return; } DisplayStrs33166 = DisplayFormats33166.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33166 = DisplayStrs33166.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33166 = DisplayStrs33166.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33166 = DisplayStrs33166.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33166").innerHTML = DisplayStrs33166; if (CountActives33166) //alert(SetTimeOutPeriods33166); setTimeout("CountBacks33166(" + (secs+CountSteppers33166) + ")", SetTimeOutPeriods33166); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33166)=="undefined") BackColors33166 = ""; if (typeof(ForeColors33166)=="undefined") ForeColors33166= "white"; if (typeof(TargetDates33166)=="undefined") TargetDates33166 = "12/06/2025 10:00:00 PM"; if (typeof(DisplayFormats33166)=="undefined") DisplayFormats33166 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33166)=="undefined") CountActives33166 = true; if (typeof(FinishMessages33166)=="undefined") FinishMessages33166 = ""; if (typeof(CountSteppers33166)!="number") CountSteppers33166 = -1; if (typeof(LeadingZeros33166)=="undefined") LeadingZeros33166 = true; CountSteppers33166 = Math.ceil(CountSteppers33166); if (CountSteppers33166 == 0) CountActives33166 = false; var SetTimeOutPeriods33166 = (Math.abs(CountSteppers33166)-1)*1000 + 990; puti(BackColors33166, ForeColors33166); var dthens33166 = new Date(TargetDates33166); var dnows33166 = new Date("12/04/2025 11:54:24 AM"); if(CountSteppers33166>0) ddiffs33166 = new Date(dnows33166-dthens33166); else ddiffs33166 = new Date(dthens33166-dnows33166); gsecss33166 = Math.floor(ddiffs33166.valueOf()/1000); CountBacks33166(gsecss33166);