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 (LeadingZeros28437 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28437(secs) { if (secs < 0) { document.getElementById("cntdwns28437").innerHTML = FinishMessages28437; return; } DisplayStrs28437 = DisplayFormats28437.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28437 = DisplayStrs28437.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28437 = DisplayStrs28437.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28437 = DisplayStrs28437.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28437").innerHTML = DisplayStrs28437; if (CountActives28437) //alert(SetTimeOutPeriods28437); setTimeout("CountBacks28437(" + (secs+CountSteppers28437) + ")", SetTimeOutPeriods28437); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28437)=="undefined") BackColors28437 = ""; if (typeof(ForeColors28437)=="undefined") ForeColors28437= "white"; if (typeof(TargetDates28437)=="undefined") TargetDates28437 = "06/06/2023 10:00:00 PM"; if (typeof(DisplayFormats28437)=="undefined") DisplayFormats28437 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28437)=="undefined") CountActives28437 = true; if (typeof(FinishMessages28437)=="undefined") FinishMessages28437 = ""; if (typeof(CountSteppers28437)!="number") CountSteppers28437 = -1; if (typeof(LeadingZeros28437)=="undefined") LeadingZeros28437 = true; CountSteppers28437 = Math.ceil(CountSteppers28437); if (CountSteppers28437 == 0) CountActives28437 = false; var SetTimeOutPeriods28437 = (Math.abs(CountSteppers28437)-1)*1000 + 990; puti(BackColors28437, ForeColors28437); var dthens28437 = new Date(TargetDates28437); var dnows28437 = new Date("05/11/2025 5:44:01 PM"); if(CountSteppers28437>0) ddiffs28437 = new Date(dnows28437-dthens28437); else ddiffs28437 = new Date(dthens28437-dnows28437); gsecss28437 = Math.floor(ddiffs28437.valueOf()/1000); CountBacks28437(gsecss28437);