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 (LeadingZeros28998 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28998(secs) { if (secs < 0) { document.getElementById("cntdwns28998").innerHTML = FinishMessages28998; return; } DisplayStrs28998 = DisplayFormats28998.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28998 = DisplayStrs28998.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28998 = DisplayStrs28998.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28998 = DisplayStrs28998.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28998").innerHTML = DisplayStrs28998; if (CountActives28998) //alert(SetTimeOutPeriods28998); setTimeout("CountBacks28998(" + (secs+CountSteppers28998) + ")", SetTimeOutPeriods28998); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28998)=="undefined") BackColors28998 = ""; if (typeof(ForeColors28998)=="undefined") ForeColors28998= "white"; if (typeof(TargetDates28998)=="undefined") TargetDates28998 = "09/28/2023 10:00:00 PM"; if (typeof(DisplayFormats28998)=="undefined") DisplayFormats28998 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28998)=="undefined") CountActives28998 = true; if (typeof(FinishMessages28998)=="undefined") FinishMessages28998 = ""; if (typeof(CountSteppers28998)!="number") CountSteppers28998 = -1; if (typeof(LeadingZeros28998)=="undefined") LeadingZeros28998 = true; CountSteppers28998 = Math.ceil(CountSteppers28998); if (CountSteppers28998 == 0) CountActives28998 = false; var SetTimeOutPeriods28998 = (Math.abs(CountSteppers28998)-1)*1000 + 990; puti(BackColors28998, ForeColors28998); var dthens28998 = new Date(TargetDates28998); var dnows28998 = new Date("05/09/2025 10:08:43 AM"); if(CountSteppers28998>0) ddiffs28998 = new Date(dnows28998-dthens28998); else ddiffs28998 = new Date(dthens28998-dnows28998); gsecss28998 = Math.floor(ddiffs28998.valueOf()/1000); CountBacks28998(gsecss28998);