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 (LeadingZeros28459 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28459(secs) { if (secs < 0) { document.getElementById("cntdwns28459").innerHTML = FinishMessages28459; return; } DisplayStrs28459 = DisplayFormats28459.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28459 = DisplayStrs28459.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28459 = DisplayStrs28459.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28459 = DisplayStrs28459.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28459").innerHTML = DisplayStrs28459; if (CountActives28459) //alert(SetTimeOutPeriods28459); setTimeout("CountBacks28459(" + (secs+CountSteppers28459) + ")", SetTimeOutPeriods28459); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28459)=="undefined") BackColors28459 = ""; if (typeof(ForeColors28459)=="undefined") ForeColors28459= "white"; if (typeof(TargetDates28459)=="undefined") TargetDates28459 = "10/02/2023 10:00:00 PM"; if (typeof(DisplayFormats28459)=="undefined") DisplayFormats28459 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28459)=="undefined") CountActives28459 = true; if (typeof(FinishMessages28459)=="undefined") FinishMessages28459 = ""; if (typeof(CountSteppers28459)!="number") CountSteppers28459 = -1; if (typeof(LeadingZeros28459)=="undefined") LeadingZeros28459 = true; CountSteppers28459 = Math.ceil(CountSteppers28459); if (CountSteppers28459 == 0) CountActives28459 = false; var SetTimeOutPeriods28459 = (Math.abs(CountSteppers28459)-1)*1000 + 990; puti(BackColors28459, ForeColors28459); var dthens28459 = new Date(TargetDates28459); var dnows28459 = new Date("05/09/2025 12:53:03 PM"); if(CountSteppers28459>0) ddiffs28459 = new Date(dnows28459-dthens28459); else ddiffs28459 = new Date(dthens28459-dnows28459); gsecss28459 = Math.floor(ddiffs28459.valueOf()/1000); CountBacks28459(gsecss28459);