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 (LeadingZeros28210 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28210(secs) { if (secs < 0) { document.getElementById("cntdwns28210").innerHTML = FinishMessages28210; return; } DisplayStrs28210 = DisplayFormats28210.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28210 = DisplayStrs28210.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28210 = DisplayStrs28210.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28210 = DisplayStrs28210.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28210").innerHTML = DisplayStrs28210; if (CountActives28210) //alert(SetTimeOutPeriods28210); setTimeout("CountBacks28210(" + (secs+CountSteppers28210) + ")", SetTimeOutPeriods28210); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28210)=="undefined") BackColors28210 = ""; if (typeof(ForeColors28210)=="undefined") ForeColors28210= "white"; if (typeof(TargetDates28210)=="undefined") TargetDates28210 = "03/26/2023 10:00:00 PM"; if (typeof(DisplayFormats28210)=="undefined") DisplayFormats28210 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28210)=="undefined") CountActives28210 = true; if (typeof(FinishMessages28210)=="undefined") FinishMessages28210 = ""; if (typeof(CountSteppers28210)!="number") CountSteppers28210 = -1; if (typeof(LeadingZeros28210)=="undefined") LeadingZeros28210 = true; CountSteppers28210 = Math.ceil(CountSteppers28210); if (CountSteppers28210 == 0) CountActives28210 = false; var SetTimeOutPeriods28210 = (Math.abs(CountSteppers28210)-1)*1000 + 990; puti(BackColors28210, ForeColors28210); var dthens28210 = new Date(TargetDates28210); var dnows28210 = new Date("05/13/2025 7:56:48 AM"); if(CountSteppers28210>0) ddiffs28210 = new Date(dnows28210-dthens28210); else ddiffs28210 = new Date(dthens28210-dnows28210); gsecss28210 = Math.floor(ddiffs28210.valueOf()/1000); CountBacks28210(gsecss28210);