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 (LeadingZeros28080 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28080(secs) { if (secs < 0) { document.getElementById("cntdwns28080").innerHTML = FinishMessages28080; return; } DisplayStrs28080 = DisplayFormats28080.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28080 = DisplayStrs28080.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28080 = DisplayStrs28080.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28080 = DisplayStrs28080.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28080").innerHTML = DisplayStrs28080; if (CountActives28080) //alert(SetTimeOutPeriods28080); setTimeout("CountBacks28080(" + (secs+CountSteppers28080) + ")", SetTimeOutPeriods28080); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28080)=="undefined") BackColors28080 = ""; if (typeof(ForeColors28080)=="undefined") ForeColors28080= "white"; if (typeof(TargetDates28080)=="undefined") TargetDates28080 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28080)=="undefined") DisplayFormats28080 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28080)=="undefined") CountActives28080 = true; if (typeof(FinishMessages28080)=="undefined") FinishMessages28080 = ""; if (typeof(CountSteppers28080)!="number") CountSteppers28080 = -1; if (typeof(LeadingZeros28080)=="undefined") LeadingZeros28080 = true; CountSteppers28080 = Math.ceil(CountSteppers28080); if (CountSteppers28080 == 0) CountActives28080 = false; var SetTimeOutPeriods28080 = (Math.abs(CountSteppers28080)-1)*1000 + 990; puti(BackColors28080, ForeColors28080); var dthens28080 = new Date(TargetDates28080); var dnows28080 = new Date("05/13/2025 11:57:40 AM"); if(CountSteppers28080>0) ddiffs28080 = new Date(dnows28080-dthens28080); else ddiffs28080 = new Date(dthens28080-dnows28080); gsecss28080 = Math.floor(ddiffs28080.valueOf()/1000); CountBacks28080(gsecss28080);