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 (LeadingZeros27565 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27565(secs) { if (secs < 0) { document.getElementById("cntdwns27565").innerHTML = FinishMessages27565; return; } DisplayStrs27565 = DisplayFormats27565.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27565 = DisplayStrs27565.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27565 = DisplayStrs27565.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27565 = DisplayStrs27565.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27565").innerHTML = DisplayStrs27565; if (CountActives27565) //alert(SetTimeOutPeriods27565); setTimeout("CountBacks27565(" + (secs+CountSteppers27565) + ")", SetTimeOutPeriods27565); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27565)=="undefined") BackColors27565 = ""; if (typeof(ForeColors27565)=="undefined") ForeColors27565= "white"; if (typeof(TargetDates27565)=="undefined") TargetDates27565 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27565)=="undefined") DisplayFormats27565 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27565)=="undefined") CountActives27565 = true; if (typeof(FinishMessages27565)=="undefined") FinishMessages27565 = ""; if (typeof(CountSteppers27565)!="number") CountSteppers27565 = -1; if (typeof(LeadingZeros27565)=="undefined") LeadingZeros27565 = true; CountSteppers27565 = Math.ceil(CountSteppers27565); if (CountSteppers27565 == 0) CountActives27565 = false; var SetTimeOutPeriods27565 = (Math.abs(CountSteppers27565)-1)*1000 + 990; puti(BackColors27565, ForeColors27565); var dthens27565 = new Date(TargetDates27565); var dnows27565 = new Date("05/13/2025 11:57:39 AM"); if(CountSteppers27565>0) ddiffs27565 = new Date(dnows27565-dthens27565); else ddiffs27565 = new Date(dthens27565-dnows27565); gsecss27565 = Math.floor(ddiffs27565.valueOf()/1000); CountBacks27565(gsecss27565);