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 (LeadingZeros28392 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28392(secs) { if (secs < 0) { document.getElementById("cntdwns28392").innerHTML = FinishMessages28392; return; } DisplayStrs28392 = DisplayFormats28392.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28392 = DisplayStrs28392.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28392 = DisplayStrs28392.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28392 = DisplayStrs28392.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28392").innerHTML = DisplayStrs28392; if (CountActives28392) //alert(SetTimeOutPeriods28392); setTimeout("CountBacks28392(" + (secs+CountSteppers28392) + ")", SetTimeOutPeriods28392); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28392)=="undefined") BackColors28392 = ""; if (typeof(ForeColors28392)=="undefined") ForeColors28392= "white"; if (typeof(TargetDates28392)=="undefined") TargetDates28392 = "09/30/2023 10:00:00 PM"; if (typeof(DisplayFormats28392)=="undefined") DisplayFormats28392 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28392)=="undefined") CountActives28392 = true; if (typeof(FinishMessages28392)=="undefined") FinishMessages28392 = ""; if (typeof(CountSteppers28392)!="number") CountSteppers28392 = -1; if (typeof(LeadingZeros28392)=="undefined") LeadingZeros28392 = true; CountSteppers28392 = Math.ceil(CountSteppers28392); if (CountSteppers28392 == 0) CountActives28392 = false; var SetTimeOutPeriods28392 = (Math.abs(CountSteppers28392)-1)*1000 + 990; puti(BackColors28392, ForeColors28392); var dthens28392 = new Date(TargetDates28392); var dnows28392 = new Date("05/09/2025 12:56:00 PM"); if(CountSteppers28392>0) ddiffs28392 = new Date(dnows28392-dthens28392); else ddiffs28392 = new Date(dthens28392-dnows28392); gsecss28392 = Math.floor(ddiffs28392.valueOf()/1000); CountBacks28392(gsecss28392);