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 (LeadingZeros27889 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27889(secs) { if (secs < 0) { document.getElementById("cntdwns27889").innerHTML = FinishMessages27889; return; } DisplayStrs27889 = DisplayFormats27889.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27889 = DisplayStrs27889.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27889 = DisplayStrs27889.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27889 = DisplayStrs27889.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27889").innerHTML = DisplayStrs27889; if (CountActives27889) //alert(SetTimeOutPeriods27889); setTimeout("CountBacks27889(" + (secs+CountSteppers27889) + ")", SetTimeOutPeriods27889); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27889)=="undefined") BackColors27889 = ""; if (typeof(ForeColors27889)=="undefined") ForeColors27889= "white"; if (typeof(TargetDates27889)=="undefined") TargetDates27889 = "03/26/2023 11:00:00 PM"; if (typeof(DisplayFormats27889)=="undefined") DisplayFormats27889 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27889)=="undefined") CountActives27889 = true; if (typeof(FinishMessages27889)=="undefined") FinishMessages27889 = ""; if (typeof(CountSteppers27889)!="number") CountSteppers27889 = -1; if (typeof(LeadingZeros27889)=="undefined") LeadingZeros27889 = true; CountSteppers27889 = Math.ceil(CountSteppers27889); if (CountSteppers27889 == 0) CountActives27889 = false; var SetTimeOutPeriods27889 = (Math.abs(CountSteppers27889)-1)*1000 + 990; puti(BackColors27889, ForeColors27889); var dthens27889 = new Date(TargetDates27889); var dnows27889 = new Date("05/13/2025 7:59:36 AM"); if(CountSteppers27889>0) ddiffs27889 = new Date(dnows27889-dthens27889); else ddiffs27889 = new Date(dthens27889-dnows27889); gsecss27889 = Math.floor(ddiffs27889.valueOf()/1000); CountBacks27889(gsecss27889);