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 (LeadingZeros27926 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27926(secs) { if (secs < 0) { document.getElementById("cntdwns27926").innerHTML = FinishMessages27926; return; } DisplayStrs27926 = DisplayFormats27926.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27926 = DisplayStrs27926.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27926 = DisplayStrs27926.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27926 = DisplayStrs27926.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27926").innerHTML = DisplayStrs27926; if (CountActives27926) //alert(SetTimeOutPeriods27926); setTimeout("CountBacks27926(" + (secs+CountSteppers27926) + ")", SetTimeOutPeriods27926); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27926)=="undefined") BackColors27926 = ""; if (typeof(ForeColors27926)=="undefined") ForeColors27926= "white"; if (typeof(TargetDates27926)=="undefined") TargetDates27926 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27926)=="undefined") DisplayFormats27926 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27926)=="undefined") CountActives27926 = true; if (typeof(FinishMessages27926)=="undefined") FinishMessages27926 = ""; if (typeof(CountSteppers27926)!="number") CountSteppers27926 = -1; if (typeof(LeadingZeros27926)=="undefined") LeadingZeros27926 = true; CountSteppers27926 = Math.ceil(CountSteppers27926); if (CountSteppers27926 == 0) CountActives27926 = false; var SetTimeOutPeriods27926 = (Math.abs(CountSteppers27926)-1)*1000 + 990; puti(BackColors27926, ForeColors27926); var dthens27926 = new Date(TargetDates27926); var dnows27926 = new Date("05/13/2025 7:56:48 AM"); if(CountSteppers27926>0) ddiffs27926 = new Date(dnows27926-dthens27926); else ddiffs27926 = new Date(dthens27926-dnows27926); gsecss27926 = Math.floor(ddiffs27926.valueOf()/1000); CountBacks27926(gsecss27926);