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 (LeadingZeros28526 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28526(secs) { if (secs < 0) { document.getElementById("cntdwns28526").innerHTML = FinishMessages28526; return; } DisplayStrs28526 = DisplayFormats28526.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28526 = DisplayStrs28526.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28526 = DisplayStrs28526.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28526 = DisplayStrs28526.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28526").innerHTML = DisplayStrs28526; if (CountActives28526) //alert(SetTimeOutPeriods28526); setTimeout("CountBacks28526(" + (secs+CountSteppers28526) + ")", SetTimeOutPeriods28526); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28526)=="undefined") BackColors28526 = ""; if (typeof(ForeColors28526)=="undefined") ForeColors28526= "white"; if (typeof(TargetDates28526)=="undefined") TargetDates28526 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28526)=="undefined") DisplayFormats28526 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28526)=="undefined") CountActives28526 = true; if (typeof(FinishMessages28526)=="undefined") FinishMessages28526 = ""; if (typeof(CountSteppers28526)!="number") CountSteppers28526 = -1; if (typeof(LeadingZeros28526)=="undefined") LeadingZeros28526 = true; CountSteppers28526 = Math.ceil(CountSteppers28526); if (CountSteppers28526 == 0) CountActives28526 = false; var SetTimeOutPeriods28526 = (Math.abs(CountSteppers28526)-1)*1000 + 990; puti(BackColors28526, ForeColors28526); var dthens28526 = new Date(TargetDates28526); var dnows28526 = new Date("05/09/2025 10:08:42 AM"); if(CountSteppers28526>0) ddiffs28526 = new Date(dnows28526-dthens28526); else ddiffs28526 = new Date(dthens28526-dnows28526); gsecss28526 = Math.floor(ddiffs28526.valueOf()/1000); CountBacks28526(gsecss28526);