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 (LeadingZeros28018 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28018(secs) { if (secs < 0) { document.getElementById("cntdwns28018").innerHTML = FinishMessages28018; return; } DisplayStrs28018 = DisplayFormats28018.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28018 = DisplayStrs28018.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28018 = DisplayStrs28018.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28018 = DisplayStrs28018.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28018").innerHTML = DisplayStrs28018; if (CountActives28018) //alert(SetTimeOutPeriods28018); setTimeout("CountBacks28018(" + (secs+CountSteppers28018) + ")", SetTimeOutPeriods28018); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28018)=="undefined") BackColors28018 = ""; if (typeof(ForeColors28018)=="undefined") ForeColors28018= "white"; if (typeof(TargetDates28018)=="undefined") TargetDates28018 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats28018)=="undefined") DisplayFormats28018 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28018)=="undefined") CountActives28018 = true; if (typeof(FinishMessages28018)=="undefined") FinishMessages28018 = ""; if (typeof(CountSteppers28018)!="number") CountSteppers28018 = -1; if (typeof(LeadingZeros28018)=="undefined") LeadingZeros28018 = true; CountSteppers28018 = Math.ceil(CountSteppers28018); if (CountSteppers28018 == 0) CountActives28018 = false; var SetTimeOutPeriods28018 = (Math.abs(CountSteppers28018)-1)*1000 + 990; puti(BackColors28018, ForeColors28018); var dthens28018 = new Date(TargetDates28018); var dnows28018 = new Date("05/13/2025 11:57:41 AM"); if(CountSteppers28018>0) ddiffs28018 = new Date(dnows28018-dthens28018); else ddiffs28018 = new Date(dthens28018-dnows28018); gsecss28018 = Math.floor(ddiffs28018.valueOf()/1000); CountBacks28018(gsecss28018);