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 (LeadingZeros28469 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28469(secs) { if (secs < 0) { document.getElementById("cntdwns28469").innerHTML = FinishMessages28469; return; } DisplayStrs28469 = DisplayFormats28469.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28469 = DisplayStrs28469.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28469 = DisplayStrs28469.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28469 = DisplayStrs28469.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28469").innerHTML = DisplayStrs28469; if (CountActives28469) //alert(SetTimeOutPeriods28469); setTimeout("CountBacks28469(" + (secs+CountSteppers28469) + ")", SetTimeOutPeriods28469); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28469)=="undefined") BackColors28469 = ""; if (typeof(ForeColors28469)=="undefined") ForeColors28469= "white"; if (typeof(TargetDates28469)=="undefined") TargetDates28469 = "10/04/2023 11:00:00 PM"; if (typeof(DisplayFormats28469)=="undefined") DisplayFormats28469 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28469)=="undefined") CountActives28469 = true; if (typeof(FinishMessages28469)=="undefined") FinishMessages28469 = ""; if (typeof(CountSteppers28469)!="number") CountSteppers28469 = -1; if (typeof(LeadingZeros28469)=="undefined") LeadingZeros28469 = true; CountSteppers28469 = Math.ceil(CountSteppers28469); if (CountSteppers28469 == 0) CountActives28469 = false; var SetTimeOutPeriods28469 = (Math.abs(CountSteppers28469)-1)*1000 + 990; puti(BackColors28469, ForeColors28469); var dthens28469 = new Date(TargetDates28469); var dnows28469 = new Date("05/09/2025 10:09:36 AM"); if(CountSteppers28469>0) ddiffs28469 = new Date(dnows28469-dthens28469); else ddiffs28469 = new Date(dthens28469-dnows28469); gsecss28469 = Math.floor(ddiffs28469.valueOf()/1000); CountBacks28469(gsecss28469);