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 (LeadingZeros27558 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27558(secs) { if (secs < 0) { document.getElementById("cntdwns27558").innerHTML = FinishMessages27558; return; } DisplayStrs27558 = DisplayFormats27558.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27558 = DisplayStrs27558.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27558 = DisplayStrs27558.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27558 = DisplayStrs27558.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27558").innerHTML = DisplayStrs27558; if (CountActives27558) //alert(SetTimeOutPeriods27558); setTimeout("CountBacks27558(" + (secs+CountSteppers27558) + ")", SetTimeOutPeriods27558); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27558)=="undefined") BackColors27558 = ""; if (typeof(ForeColors27558)=="undefined") ForeColors27558= "white"; if (typeof(TargetDates27558)=="undefined") TargetDates27558 = "06/08/2023 11:00:00 PM"; if (typeof(DisplayFormats27558)=="undefined") DisplayFormats27558 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27558)=="undefined") CountActives27558 = true; if (typeof(FinishMessages27558)=="undefined") FinishMessages27558 = ""; if (typeof(CountSteppers27558)!="number") CountSteppers27558 = -1; if (typeof(LeadingZeros27558)=="undefined") LeadingZeros27558 = true; CountSteppers27558 = Math.ceil(CountSteppers27558); if (CountSteppers27558 == 0) CountActives27558 = false; var SetTimeOutPeriods27558 = (Math.abs(CountSteppers27558)-1)*1000 + 990; puti(BackColors27558, ForeColors27558); var dthens27558 = new Date(TargetDates27558); var dnows27558 = new Date("05/11/2025 7:46:31 AM"); if(CountSteppers27558>0) ddiffs27558 = new Date(dnows27558-dthens27558); else ddiffs27558 = new Date(dthens27558-dnows27558); gsecss27558 = Math.floor(ddiffs27558.valueOf()/1000); CountBacks27558(gsecss27558);