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 (LeadingZeros27887 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27887(secs) { if (secs < 0) { document.getElementById("cntdwns27887").innerHTML = FinishMessages27887; return; } DisplayStrs27887 = DisplayFormats27887.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27887 = DisplayStrs27887.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27887 = DisplayStrs27887.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27887 = DisplayStrs27887.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27887").innerHTML = DisplayStrs27887; if (CountActives27887) //alert(SetTimeOutPeriods27887); setTimeout("CountBacks27887(" + (secs+CountSteppers27887) + ")", SetTimeOutPeriods27887); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27887)=="undefined") BackColors27887 = ""; if (typeof(ForeColors27887)=="undefined") ForeColors27887= "white"; if (typeof(TargetDates27887)=="undefined") TargetDates27887 = "06/13/2023 11:00:00 PM"; if (typeof(DisplayFormats27887)=="undefined") DisplayFormats27887 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27887)=="undefined") CountActives27887 = true; if (typeof(FinishMessages27887)=="undefined") FinishMessages27887 = ""; if (typeof(CountSteppers27887)!="number") CountSteppers27887 = -1; if (typeof(LeadingZeros27887)=="undefined") LeadingZeros27887 = true; CountSteppers27887 = Math.ceil(CountSteppers27887); if (CountSteppers27887 == 0) CountActives27887 = false; var SetTimeOutPeriods27887 = (Math.abs(CountSteppers27887)-1)*1000 + 990; puti(BackColors27887, ForeColors27887); var dthens27887 = new Date(TargetDates27887); var dnows27887 = new Date("05/11/2025 7:46:31 AM"); if(CountSteppers27887>0) ddiffs27887 = new Date(dnows27887-dthens27887); else ddiffs27887 = new Date(dthens27887-dnows27887); gsecss27887 = Math.floor(ddiffs27887.valueOf()/1000); CountBacks27887(gsecss27887);