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 (LeadingZeros28982 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28982(secs) { if (secs < 0) { document.getElementById("cntdwns28982").innerHTML = FinishMessages28982; return; } DisplayStrs28982 = DisplayFormats28982.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28982 = DisplayStrs28982.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28982 = DisplayStrs28982.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28982 = DisplayStrs28982.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28982").innerHTML = DisplayStrs28982; if (CountActives28982) //alert(SetTimeOutPeriods28982); setTimeout("CountBacks28982(" + (secs+CountSteppers28982) + ")", SetTimeOutPeriods28982); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28982)=="undefined") BackColors28982 = ""; if (typeof(ForeColors28982)=="undefined") ForeColors28982= "white"; if (typeof(TargetDates28982)=="undefined") TargetDates28982 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats28982)=="undefined") DisplayFormats28982 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28982)=="undefined") CountActives28982 = true; if (typeof(FinishMessages28982)=="undefined") FinishMessages28982 = ""; if (typeof(CountSteppers28982)!="number") CountSteppers28982 = -1; if (typeof(LeadingZeros28982)=="undefined") LeadingZeros28982 = true; CountSteppers28982 = Math.ceil(CountSteppers28982); if (CountSteppers28982 == 0) CountActives28982 = false; var SetTimeOutPeriods28982 = (Math.abs(CountSteppers28982)-1)*1000 + 990; puti(BackColors28982, ForeColors28982); var dthens28982 = new Date(TargetDates28982); var dnows28982 = new Date("05/09/2025 10:06:59 AM"); if(CountSteppers28982>0) ddiffs28982 = new Date(dnows28982-dthens28982); else ddiffs28982 = new Date(dthens28982-dnows28982); gsecss28982 = Math.floor(ddiffs28982.valueOf()/1000); CountBacks28982(gsecss28982);