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 (LeadingZeros27873 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27873(secs) { if (secs < 0) { document.getElementById("cntdwns27873").innerHTML = FinishMessages27873; return; } DisplayStrs27873 = DisplayFormats27873.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27873 = DisplayStrs27873.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27873 = DisplayStrs27873.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27873 = DisplayStrs27873.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27873").innerHTML = DisplayStrs27873; if (CountActives27873) //alert(SetTimeOutPeriods27873); setTimeout("CountBacks27873(" + (secs+CountSteppers27873) + ")", SetTimeOutPeriods27873); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27873)=="undefined") BackColors27873 = ""; if (typeof(ForeColors27873)=="undefined") ForeColors27873= "white"; if (typeof(TargetDates27873)=="undefined") TargetDates27873 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27873)=="undefined") DisplayFormats27873 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27873)=="undefined") CountActives27873 = true; if (typeof(FinishMessages27873)=="undefined") FinishMessages27873 = ""; if (typeof(CountSteppers27873)!="number") CountSteppers27873 = -1; if (typeof(LeadingZeros27873)=="undefined") LeadingZeros27873 = true; CountSteppers27873 = Math.ceil(CountSteppers27873); if (CountSteppers27873 == 0) CountActives27873 = false; var SetTimeOutPeriods27873 = (Math.abs(CountSteppers27873)-1)*1000 + 990; puti(BackColors27873, ForeColors27873); var dthens27873 = new Date(TargetDates27873); var dnows27873 = new Date("05/13/2025 7:56:48 AM"); if(CountSteppers27873>0) ddiffs27873 = new Date(dnows27873-dthens27873); else ddiffs27873 = new Date(dthens27873-dnows27873); gsecss27873 = Math.floor(ddiffs27873.valueOf()/1000); CountBacks27873(gsecss27873);