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 (LeadingZeros28056 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28056(secs) { if (secs < 0) { document.getElementById("cntdwns28056").innerHTML = FinishMessages28056; return; } DisplayStrs28056 = DisplayFormats28056.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28056 = DisplayStrs28056.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28056 = DisplayStrs28056.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28056 = DisplayStrs28056.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28056").innerHTML = DisplayStrs28056; if (CountActives28056) //alert(SetTimeOutPeriods28056); setTimeout("CountBacks28056(" + (secs+CountSteppers28056) + ")", SetTimeOutPeriods28056); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28056)=="undefined") BackColors28056 = ""; if (typeof(ForeColors28056)=="undefined") ForeColors28056= "white"; if (typeof(TargetDates28056)=="undefined") TargetDates28056 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats28056)=="undefined") DisplayFormats28056 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28056)=="undefined") CountActives28056 = true; if (typeof(FinishMessages28056)=="undefined") FinishMessages28056 = ""; if (typeof(CountSteppers28056)!="number") CountSteppers28056 = -1; if (typeof(LeadingZeros28056)=="undefined") LeadingZeros28056 = true; CountSteppers28056 = Math.ceil(CountSteppers28056); if (CountSteppers28056 == 0) CountActives28056 = false; var SetTimeOutPeriods28056 = (Math.abs(CountSteppers28056)-1)*1000 + 990; puti(BackColors28056, ForeColors28056); var dthens28056 = new Date(TargetDates28056); var dnows28056 = new Date("05/13/2025 7:56:49 AM"); if(CountSteppers28056>0) ddiffs28056 = new Date(dnows28056-dthens28056); else ddiffs28056 = new Date(dthens28056-dnows28056); gsecss28056 = Math.floor(ddiffs28056.valueOf()/1000); CountBacks28056(gsecss28056);