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 (LeadingZeros28104 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28104(secs) { if (secs < 0) { document.getElementById("cntdwns28104").innerHTML = FinishMessages28104; return; } DisplayStrs28104 = DisplayFormats28104.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28104 = DisplayStrs28104.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28104 = DisplayStrs28104.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28104 = DisplayStrs28104.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28104").innerHTML = DisplayStrs28104; if (CountActives28104) //alert(SetTimeOutPeriods28104); setTimeout("CountBacks28104(" + (secs+CountSteppers28104) + ")", SetTimeOutPeriods28104); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28104)=="undefined") BackColors28104 = ""; if (typeof(ForeColors28104)=="undefined") ForeColors28104= "white"; if (typeof(TargetDates28104)=="undefined") TargetDates28104 = "09/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28104)=="undefined") DisplayFormats28104 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28104)=="undefined") CountActives28104 = true; if (typeof(FinishMessages28104)=="undefined") FinishMessages28104 = ""; if (typeof(CountSteppers28104)!="number") CountSteppers28104 = -1; if (typeof(LeadingZeros28104)=="undefined") LeadingZeros28104 = true; CountSteppers28104 = Math.ceil(CountSteppers28104); if (CountSteppers28104 == 0) CountActives28104 = false; var SetTimeOutPeriods28104 = (Math.abs(CountSteppers28104)-1)*1000 + 990; puti(BackColors28104, ForeColors28104); var dthens28104 = new Date(TargetDates28104); var dnows28104 = new Date("05/11/2025 2:13:15 PM"); if(CountSteppers28104>0) ddiffs28104 = new Date(dnows28104-dthens28104); else ddiffs28104 = new Date(dthens28104-dnows28104); gsecss28104 = Math.floor(ddiffs28104.valueOf()/1000); CountBacks28104(gsecss28104);