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 (LeadingZeros27741 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27741(secs) { if (secs < 0) { document.getElementById("cntdwns27741").innerHTML = FinishMessages27741; return; } DisplayStrs27741 = DisplayFormats27741.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27741 = DisplayStrs27741.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27741 = DisplayStrs27741.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27741 = DisplayStrs27741.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27741").innerHTML = DisplayStrs27741; if (CountActives27741) //alert(SetTimeOutPeriods27741); setTimeout("CountBacks27741(" + (secs+CountSteppers27741) + ")", SetTimeOutPeriods27741); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27741)=="undefined") BackColors27741 = ""; if (typeof(ForeColors27741)=="undefined") ForeColors27741= "white"; if (typeof(TargetDates27741)=="undefined") TargetDates27741 = "06/12/2023 11:00:00 PM"; if (typeof(DisplayFormats27741)=="undefined") DisplayFormats27741 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27741)=="undefined") CountActives27741 = true; if (typeof(FinishMessages27741)=="undefined") FinishMessages27741 = ""; if (typeof(CountSteppers27741)!="number") CountSteppers27741 = -1; if (typeof(LeadingZeros27741)=="undefined") LeadingZeros27741 = true; CountSteppers27741 = Math.ceil(CountSteppers27741); if (CountSteppers27741 == 0) CountActives27741 = false; var SetTimeOutPeriods27741 = (Math.abs(CountSteppers27741)-1)*1000 + 990; puti(BackColors27741, ForeColors27741); var dthens27741 = new Date(TargetDates27741); var dnows27741 = new Date("05/09/2025 10:07:49 AM"); if(CountSteppers27741>0) ddiffs27741 = new Date(dnows27741-dthens27741); else ddiffs27741 = new Date(dthens27741-dnows27741); gsecss27741 = Math.floor(ddiffs27741.valueOf()/1000); CountBacks27741(gsecss27741);