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 (LeadingZeros28509 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28509(secs) { if (secs < 0) { document.getElementById("cntdwns28509").innerHTML = FinishMessages28509; return; } DisplayStrs28509 = DisplayFormats28509.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28509 = DisplayStrs28509.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28509 = DisplayStrs28509.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28509 = DisplayStrs28509.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28509").innerHTML = DisplayStrs28509; if (CountActives28509) //alert(SetTimeOutPeriods28509); setTimeout("CountBacks28509(" + (secs+CountSteppers28509) + ")", SetTimeOutPeriods28509); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28509)=="undefined") BackColors28509 = ""; if (typeof(ForeColors28509)=="undefined") ForeColors28509= "white"; if (typeof(TargetDates28509)=="undefined") TargetDates28509 = "10/03/2023 10:00:00 PM"; if (typeof(DisplayFormats28509)=="undefined") DisplayFormats28509 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28509)=="undefined") CountActives28509 = true; if (typeof(FinishMessages28509)=="undefined") FinishMessages28509 = ""; if (typeof(CountSteppers28509)!="number") CountSteppers28509 = -1; if (typeof(LeadingZeros28509)=="undefined") LeadingZeros28509 = true; CountSteppers28509 = Math.ceil(CountSteppers28509); if (CountSteppers28509 == 0) CountActives28509 = false; var SetTimeOutPeriods28509 = (Math.abs(CountSteppers28509)-1)*1000 + 990; puti(BackColors28509, ForeColors28509); var dthens28509 = new Date(TargetDates28509); var dnows28509 = new Date("05/09/2025 10:07:51 AM"); if(CountSteppers28509>0) ddiffs28509 = new Date(dnows28509-dthens28509); else ddiffs28509 = new Date(dthens28509-dnows28509); gsecss28509 = Math.floor(ddiffs28509.valueOf()/1000); CountBacks28509(gsecss28509);