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 (LeadingZeros28378 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28378(secs) { if (secs < 0) { document.getElementById("cntdwns28378").innerHTML = FinishMessages28378; return; } DisplayStrs28378 = DisplayFormats28378.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28378 = DisplayStrs28378.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28378 = DisplayStrs28378.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28378 = DisplayStrs28378.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28378").innerHTML = DisplayStrs28378; if (CountActives28378) //alert(SetTimeOutPeriods28378); setTimeout("CountBacks28378(" + (secs+CountSteppers28378) + ")", SetTimeOutPeriods28378); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28378)=="undefined") BackColors28378 = ""; if (typeof(ForeColors28378)=="undefined") ForeColors28378= "white"; if (typeof(TargetDates28378)=="undefined") TargetDates28378 = "05/31/2023 10:00:00 PM"; if (typeof(DisplayFormats28378)=="undefined") DisplayFormats28378 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28378)=="undefined") CountActives28378 = true; if (typeof(FinishMessages28378)=="undefined") FinishMessages28378 = ""; if (typeof(CountSteppers28378)!="number") CountSteppers28378 = -1; if (typeof(LeadingZeros28378)=="undefined") LeadingZeros28378 = true; CountSteppers28378 = Math.ceil(CountSteppers28378); if (CountSteppers28378 == 0) CountActives28378 = false; var SetTimeOutPeriods28378 = (Math.abs(CountSteppers28378)-1)*1000 + 990; puti(BackColors28378, ForeColors28378); var dthens28378 = new Date(TargetDates28378); var dnows28378 = new Date("05/09/2025 10:08:41 AM"); if(CountSteppers28378>0) ddiffs28378 = new Date(dnows28378-dthens28378); else ddiffs28378 = new Date(dthens28378-dnows28378); gsecss28378 = Math.floor(ddiffs28378.valueOf()/1000); CountBacks28378(gsecss28378);