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 (LeadingZeros28144 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28144(secs) { if (secs < 0) { document.getElementById("cntdwns28144").innerHTML = FinishMessages28144; return; } DisplayStrs28144 = DisplayFormats28144.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28144 = DisplayStrs28144.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28144 = DisplayStrs28144.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28144 = DisplayStrs28144.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28144").innerHTML = DisplayStrs28144; if (CountActives28144) //alert(SetTimeOutPeriods28144); setTimeout("CountBacks28144(" + (secs+CountSteppers28144) + ")", SetTimeOutPeriods28144); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28144)=="undefined") BackColors28144 = ""; if (typeof(ForeColors28144)=="undefined") ForeColors28144= "white"; if (typeof(TargetDates28144)=="undefined") TargetDates28144 = "09/27/2023 11:00:00 PM"; if (typeof(DisplayFormats28144)=="undefined") DisplayFormats28144 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28144)=="undefined") CountActives28144 = true; if (typeof(FinishMessages28144)=="undefined") FinishMessages28144 = ""; if (typeof(CountSteppers28144)!="number") CountSteppers28144 = -1; if (typeof(LeadingZeros28144)=="undefined") LeadingZeros28144 = true; CountSteppers28144 = Math.ceil(CountSteppers28144); if (CountSteppers28144 == 0) CountActives28144 = false; var SetTimeOutPeriods28144 = (Math.abs(CountSteppers28144)-1)*1000 + 990; puti(BackColors28144, ForeColors28144); var dthens28144 = new Date(TargetDates28144); var dnows28144 = new Date("05/11/2025 2:13:15 PM"); if(CountSteppers28144>0) ddiffs28144 = new Date(dnows28144-dthens28144); else ddiffs28144 = new Date(dthens28144-dnows28144); gsecss28144 = Math.floor(ddiffs28144.valueOf()/1000); CountBacks28144(gsecss28144);