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 (LeadingZeros27837 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27837(secs) { if (secs < 0) { document.getElementById("cntdwns27837").innerHTML = FinishMessages27837; return; } DisplayStrs27837 = DisplayFormats27837.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27837 = DisplayStrs27837.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27837 = DisplayStrs27837.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27837 = DisplayStrs27837.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27837").innerHTML = DisplayStrs27837; if (CountActives27837) //alert(SetTimeOutPeriods27837); setTimeout("CountBacks27837(" + (secs+CountSteppers27837) + ")", SetTimeOutPeriods27837); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27837)=="undefined") BackColors27837 = ""; if (typeof(ForeColors27837)=="undefined") ForeColors27837= "white"; if (typeof(TargetDates27837)=="undefined") TargetDates27837 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27837)=="undefined") DisplayFormats27837 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27837)=="undefined") CountActives27837 = true; if (typeof(FinishMessages27837)=="undefined") FinishMessages27837 = ""; if (typeof(CountSteppers27837)!="number") CountSteppers27837 = -1; if (typeof(LeadingZeros27837)=="undefined") LeadingZeros27837 = true; CountSteppers27837 = Math.ceil(CountSteppers27837); if (CountSteppers27837 == 0) CountActives27837 = false; var SetTimeOutPeriods27837 = (Math.abs(CountSteppers27837)-1)*1000 + 990; puti(BackColors27837, ForeColors27837); var dthens27837 = new Date(TargetDates27837); var dnows27837 = new Date("05/13/2025 11:57:39 AM"); if(CountSteppers27837>0) ddiffs27837 = new Date(dnows27837-dthens27837); else ddiffs27837 = new Date(dthens27837-dnows27837); gsecss27837 = Math.floor(ddiffs27837.valueOf()/1000); CountBacks27837(gsecss27837);