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 (LeadingZeros33184 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33184(secs) { if (secs < 0) { document.getElementById("cntdwns33184").innerHTML = FinishMessages33184; return; } DisplayStrs33184 = DisplayFormats33184.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33184 = DisplayStrs33184.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33184 = DisplayStrs33184.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33184 = DisplayStrs33184.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33184").innerHTML = DisplayStrs33184; if (CountActives33184) //alert(SetTimeOutPeriods33184); setTimeout("CountBacks33184(" + (secs+CountSteppers33184) + ")", SetTimeOutPeriods33184); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33184)=="undefined") BackColors33184 = ""; if (typeof(ForeColors33184)=="undefined") ForeColors33184= "white"; if (typeof(TargetDates33184)=="undefined") TargetDates33184 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33184)=="undefined") DisplayFormats33184 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33184)=="undefined") CountActives33184 = true; if (typeof(FinishMessages33184)=="undefined") FinishMessages33184 = ""; if (typeof(CountSteppers33184)!="number") CountSteppers33184 = -1; if (typeof(LeadingZeros33184)=="undefined") LeadingZeros33184 = true; CountSteppers33184 = Math.ceil(CountSteppers33184); if (CountSteppers33184 == 0) CountActives33184 = false; var SetTimeOutPeriods33184 = (Math.abs(CountSteppers33184)-1)*1000 + 990; puti(BackColors33184, ForeColors33184); var dthens33184 = new Date(TargetDates33184); var dnows33184 = new Date("12/04/2025 11:23:48 AM"); if(CountSteppers33184>0) ddiffs33184 = new Date(dnows33184-dthens33184); else ddiffs33184 = new Date(dthens33184-dnows33184); gsecss33184 = Math.floor(ddiffs33184.valueOf()/1000); CountBacks33184(gsecss33184);