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 (LeadingZeros28561 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28561(secs) { if (secs < 0) { document.getElementById("cntdwns28561").innerHTML = FinishMessages28561; return; } DisplayStrs28561 = DisplayFormats28561.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28561 = DisplayStrs28561.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28561 = DisplayStrs28561.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28561 = DisplayStrs28561.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28561").innerHTML = DisplayStrs28561; if (CountActives28561) //alert(SetTimeOutPeriods28561); setTimeout("CountBacks28561(" + (secs+CountSteppers28561) + ")", SetTimeOutPeriods28561); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28561)=="undefined") BackColors28561 = ""; if (typeof(ForeColors28561)=="undefined") ForeColors28561= "white"; if (typeof(TargetDates28561)=="undefined") TargetDates28561 = "06/13/2023 10:00:00 PM"; if (typeof(DisplayFormats28561)=="undefined") DisplayFormats28561 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28561)=="undefined") CountActives28561 = true; if (typeof(FinishMessages28561)=="undefined") FinishMessages28561 = ""; if (typeof(CountSteppers28561)!="number") CountSteppers28561 = -1; if (typeof(LeadingZeros28561)=="undefined") LeadingZeros28561 = true; CountSteppers28561 = Math.ceil(CountSteppers28561); if (CountSteppers28561 == 0) CountActives28561 = false; var SetTimeOutPeriods28561 = (Math.abs(CountSteppers28561)-1)*1000 + 990; puti(BackColors28561, ForeColors28561); var dthens28561 = new Date(TargetDates28561); var dnows28561 = new Date("05/11/2025 10:55:59 AM"); if(CountSteppers28561>0) ddiffs28561 = new Date(dnows28561-dthens28561); else ddiffs28561 = new Date(dthens28561-dnows28561); gsecss28561 = Math.floor(ddiffs28561.valueOf()/1000); CountBacks28561(gsecss28561);