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 (LeadingZeros27798 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27798(secs) { if (secs < 0) { document.getElementById("cntdwns27798").innerHTML = FinishMessages27798; return; } DisplayStrs27798 = DisplayFormats27798.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27798 = DisplayStrs27798.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27798 = DisplayStrs27798.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27798 = DisplayStrs27798.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27798").innerHTML = DisplayStrs27798; if (CountActives27798) //alert(SetTimeOutPeriods27798); setTimeout("CountBacks27798(" + (secs+CountSteppers27798) + ")", SetTimeOutPeriods27798); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27798)=="undefined") BackColors27798 = ""; if (typeof(ForeColors27798)=="undefined") ForeColors27798= "white"; if (typeof(TargetDates27798)=="undefined") TargetDates27798 = "04/02/2023 11:00:00 PM"; if (typeof(DisplayFormats27798)=="undefined") DisplayFormats27798 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27798)=="undefined") CountActives27798 = true; if (typeof(FinishMessages27798)=="undefined") FinishMessages27798 = ""; if (typeof(CountSteppers27798)!="number") CountSteppers27798 = -1; if (typeof(LeadingZeros27798)=="undefined") LeadingZeros27798 = true; CountSteppers27798 = Math.ceil(CountSteppers27798); if (CountSteppers27798 == 0) CountActives27798 = false; var SetTimeOutPeriods27798 = (Math.abs(CountSteppers27798)-1)*1000 + 990; puti(BackColors27798, ForeColors27798); var dthens27798 = new Date(TargetDates27798); var dnows27798 = new Date("05/13/2025 8:00:43 AM"); if(CountSteppers27798>0) ddiffs27798 = new Date(dnows27798-dthens27798); else ddiffs27798 = new Date(dthens27798-dnows27798); gsecss27798 = Math.floor(ddiffs27798.valueOf()/1000); CountBacks27798(gsecss27798);