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 (LeadingZeros28471 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28471(secs) { if (secs < 0) { document.getElementById("cntdwns28471").innerHTML = FinishMessages28471; return; } DisplayStrs28471 = DisplayFormats28471.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28471 = DisplayStrs28471.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28471 = DisplayStrs28471.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28471 = DisplayStrs28471.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28471").innerHTML = DisplayStrs28471; if (CountActives28471) //alert(SetTimeOutPeriods28471); setTimeout("CountBacks28471(" + (secs+CountSteppers28471) + ")", SetTimeOutPeriods28471); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28471)=="undefined") BackColors28471 = ""; if (typeof(ForeColors28471)=="undefined") ForeColors28471= "white"; if (typeof(TargetDates28471)=="undefined") TargetDates28471 = "06/07/2023 10:00:00 PM"; if (typeof(DisplayFormats28471)=="undefined") DisplayFormats28471 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28471)=="undefined") CountActives28471 = true; if (typeof(FinishMessages28471)=="undefined") FinishMessages28471 = ""; if (typeof(CountSteppers28471)!="number") CountSteppers28471 = -1; if (typeof(LeadingZeros28471)=="undefined") LeadingZeros28471 = true; CountSteppers28471 = Math.ceil(CountSteppers28471); if (CountSteppers28471 == 0) CountActives28471 = false; var SetTimeOutPeriods28471 = (Math.abs(CountSteppers28471)-1)*1000 + 990; puti(BackColors28471, ForeColors28471); var dthens28471 = new Date(TargetDates28471); var dnows28471 = new Date("05/11/2025 2:15:21 PM"); if(CountSteppers28471>0) ddiffs28471 = new Date(dnows28471-dthens28471); else ddiffs28471 = new Date(dthens28471-dnows28471); gsecss28471 = Math.floor(ddiffs28471.valueOf()/1000); CountBacks28471(gsecss28471);