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 (LeadingZeros28153 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28153(secs) { if (secs < 0) { document.getElementById("cntdwns28153").innerHTML = FinishMessages28153; return; } DisplayStrs28153 = DisplayFormats28153.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28153 = DisplayStrs28153.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28153 = DisplayStrs28153.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28153 = DisplayStrs28153.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28153").innerHTML = DisplayStrs28153; if (CountActives28153) //alert(SetTimeOutPeriods28153); setTimeout("CountBacks28153(" + (secs+CountSteppers28153) + ")", SetTimeOutPeriods28153); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28153)=="undefined") BackColors28153 = ""; if (typeof(ForeColors28153)=="undefined") ForeColors28153= "white"; if (typeof(TargetDates28153)=="undefined") TargetDates28153 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats28153)=="undefined") DisplayFormats28153 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28153)=="undefined") CountActives28153 = true; if (typeof(FinishMessages28153)=="undefined") FinishMessages28153 = ""; if (typeof(CountSteppers28153)!="number") CountSteppers28153 = -1; if (typeof(LeadingZeros28153)=="undefined") LeadingZeros28153 = true; CountSteppers28153 = Math.ceil(CountSteppers28153); if (CountSteppers28153 == 0) CountActives28153 = false; var SetTimeOutPeriods28153 = (Math.abs(CountSteppers28153)-1)*1000 + 990; puti(BackColors28153, ForeColors28153); var dthens28153 = new Date(TargetDates28153); var dnows28153 = new Date("05/13/2025 11:58:56 AM"); if(CountSteppers28153>0) ddiffs28153 = new Date(dnows28153-dthens28153); else ddiffs28153 = new Date(dthens28153-dnows28153); gsecss28153 = Math.floor(ddiffs28153.valueOf()/1000); CountBacks28153(gsecss28153);