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 (LeadingZeros28977 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28977(secs) { if (secs < 0) { document.getElementById("cntdwns28977").innerHTML = FinishMessages28977; return; } DisplayStrs28977 = DisplayFormats28977.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28977 = DisplayStrs28977.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28977 = DisplayStrs28977.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28977 = DisplayStrs28977.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28977").innerHTML = DisplayStrs28977; if (CountActives28977) //alert(SetTimeOutPeriods28977); setTimeout("CountBacks28977(" + (secs+CountSteppers28977) + ")", SetTimeOutPeriods28977); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28977)=="undefined") BackColors28977 = ""; if (typeof(ForeColors28977)=="undefined") ForeColors28977= "white"; if (typeof(TargetDates28977)=="undefined") TargetDates28977 = "09/27/2023 10:00:00 PM"; if (typeof(DisplayFormats28977)=="undefined") DisplayFormats28977 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28977)=="undefined") CountActives28977 = true; if (typeof(FinishMessages28977)=="undefined") FinishMessages28977 = ""; if (typeof(CountSteppers28977)!="number") CountSteppers28977 = -1; if (typeof(LeadingZeros28977)=="undefined") LeadingZeros28977 = true; CountSteppers28977 = Math.ceil(CountSteppers28977); if (CountSteppers28977 == 0) CountActives28977 = false; var SetTimeOutPeriods28977 = (Math.abs(CountSteppers28977)-1)*1000 + 990; puti(BackColors28977, ForeColors28977); var dthens28977 = new Date(TargetDates28977); var dnows28977 = new Date("05/09/2025 10:09:34 AM"); if(CountSteppers28977>0) ddiffs28977 = new Date(dnows28977-dthens28977); else ddiffs28977 = new Date(dthens28977-dnows28977); gsecss28977 = Math.floor(ddiffs28977.valueOf()/1000); CountBacks28977(gsecss28977);