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 (LeadingZeros27996 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27996(secs) { if (secs < 0) { document.getElementById("cntdwns27996").innerHTML = FinishMessages27996; return; } DisplayStrs27996 = DisplayFormats27996.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27996 = DisplayStrs27996.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27996 = DisplayStrs27996.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27996 = DisplayStrs27996.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27996").innerHTML = DisplayStrs27996; if (CountActives27996) //alert(SetTimeOutPeriods27996); setTimeout("CountBacks27996(" + (secs+CountSteppers27996) + ")", SetTimeOutPeriods27996); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27996)=="undefined") BackColors27996 = ""; if (typeof(ForeColors27996)=="undefined") ForeColors27996= "white"; if (typeof(TargetDates27996)=="undefined") TargetDates27996 = "03/27/2023 11:00:00 PM"; if (typeof(DisplayFormats27996)=="undefined") DisplayFormats27996 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27996)=="undefined") CountActives27996 = true; if (typeof(FinishMessages27996)=="undefined") FinishMessages27996 = ""; if (typeof(CountSteppers27996)!="number") CountSteppers27996 = -1; if (typeof(LeadingZeros27996)=="undefined") LeadingZeros27996 = true; CountSteppers27996 = Math.ceil(CountSteppers27996); if (CountSteppers27996 == 0) CountActives27996 = false; var SetTimeOutPeriods27996 = (Math.abs(CountSteppers27996)-1)*1000 + 990; puti(BackColors27996, ForeColors27996); var dthens27996 = new Date(TargetDates27996); var dnows27996 = new Date("05/13/2025 8:00:43 AM"); if(CountSteppers27996>0) ddiffs27996 = new Date(dnows27996-dthens27996); else ddiffs27996 = new Date(dthens27996-dnows27996); gsecss27996 = Math.floor(ddiffs27996.valueOf()/1000); CountBacks27996(gsecss27996);