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 (LeadingZeros28209 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28209(secs) { if (secs < 0) { document.getElementById("cntdwns28209").innerHTML = FinishMessages28209; return; } DisplayStrs28209 = DisplayFormats28209.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28209 = DisplayStrs28209.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28209 = DisplayStrs28209.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28209 = DisplayStrs28209.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28209").innerHTML = DisplayStrs28209; if (CountActives28209) //alert(SetTimeOutPeriods28209); setTimeout("CountBacks28209(" + (secs+CountSteppers28209) + ")", SetTimeOutPeriods28209); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28209)=="undefined") BackColors28209 = ""; if (typeof(ForeColors28209)=="undefined") ForeColors28209= "white"; if (typeof(TargetDates28209)=="undefined") TargetDates28209 = "03/26/2023 9:00:00 PM"; if (typeof(DisplayFormats28209)=="undefined") DisplayFormats28209 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28209)=="undefined") CountActives28209 = true; if (typeof(FinishMessages28209)=="undefined") FinishMessages28209 = ""; if (typeof(CountSteppers28209)!="number") CountSteppers28209 = -1; if (typeof(LeadingZeros28209)=="undefined") LeadingZeros28209 = true; CountSteppers28209 = Math.ceil(CountSteppers28209); if (CountSteppers28209 == 0) CountActives28209 = false; var SetTimeOutPeriods28209 = (Math.abs(CountSteppers28209)-1)*1000 + 990; puti(BackColors28209, ForeColors28209); var dthens28209 = new Date(TargetDates28209); var dnows28209 = new Date("05/13/2025 7:58:11 AM"); if(CountSteppers28209>0) ddiffs28209 = new Date(dnows28209-dthens28209); else ddiffs28209 = new Date(dthens28209-dnows28209); gsecss28209 = Math.floor(ddiffs28209.valueOf()/1000); CountBacks28209(gsecss28209);