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 (LeadingZeros28503 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28503(secs) { if (secs < 0) { document.getElementById("cntdwns28503").innerHTML = FinishMessages28503; return; } DisplayStrs28503 = DisplayFormats28503.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28503 = DisplayStrs28503.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28503 = DisplayStrs28503.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28503 = DisplayStrs28503.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28503").innerHTML = DisplayStrs28503; if (CountActives28503) //alert(SetTimeOutPeriods28503); setTimeout("CountBacks28503(" + (secs+CountSteppers28503) + ")", SetTimeOutPeriods28503); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28503)=="undefined") BackColors28503 = ""; if (typeof(ForeColors28503)=="undefined") ForeColors28503= "white"; if (typeof(TargetDates28503)=="undefined") TargetDates28503 = "12/02/2023 9:00:00 PM"; if (typeof(DisplayFormats28503)=="undefined") DisplayFormats28503 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28503)=="undefined") CountActives28503 = true; if (typeof(FinishMessages28503)=="undefined") FinishMessages28503 = ""; if (typeof(CountSteppers28503)!="number") CountSteppers28503 = -1; if (typeof(LeadingZeros28503)=="undefined") LeadingZeros28503 = true; CountSteppers28503 = Math.ceil(CountSteppers28503); if (CountSteppers28503 == 0) CountActives28503 = false; var SetTimeOutPeriods28503 = (Math.abs(CountSteppers28503)-1)*1000 + 990; puti(BackColors28503, ForeColors28503); var dthens28503 = new Date(TargetDates28503); var dnows28503 = new Date("05/09/2025 10:08:42 AM"); if(CountSteppers28503>0) ddiffs28503 = new Date(dnows28503-dthens28503); else ddiffs28503 = new Date(dthens28503-dnows28503); gsecss28503 = Math.floor(ddiffs28503.valueOf()/1000); CountBacks28503(gsecss28503);