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 (LeadingZeros27807 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27807(secs) { if (secs < 0) { document.getElementById("cntdwns27807").innerHTML = FinishMessages27807; return; } DisplayStrs27807 = DisplayFormats27807.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27807 = DisplayStrs27807.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27807 = DisplayStrs27807.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27807 = DisplayStrs27807.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27807").innerHTML = DisplayStrs27807; if (CountActives27807) //alert(SetTimeOutPeriods27807); setTimeout("CountBacks27807(" + (secs+CountSteppers27807) + ")", SetTimeOutPeriods27807); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27807)=="undefined") BackColors27807 = ""; if (typeof(ForeColors27807)=="undefined") ForeColors27807= "white"; if (typeof(TargetDates27807)=="undefined") TargetDates27807 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27807)=="undefined") DisplayFormats27807 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27807)=="undefined") CountActives27807 = true; if (typeof(FinishMessages27807)=="undefined") FinishMessages27807 = ""; if (typeof(CountSteppers27807)!="number") CountSteppers27807 = -1; if (typeof(LeadingZeros27807)=="undefined") LeadingZeros27807 = true; CountSteppers27807 = Math.ceil(CountSteppers27807); if (CountSteppers27807 == 0) CountActives27807 = false; var SetTimeOutPeriods27807 = (Math.abs(CountSteppers27807)-1)*1000 + 990; puti(BackColors27807, ForeColors27807); var dthens27807 = new Date(TargetDates27807); var dnows27807 = new Date("05/13/2025 4:23:18 AM"); if(CountSteppers27807>0) ddiffs27807 = new Date(dnows27807-dthens27807); else ddiffs27807 = new Date(dthens27807-dnows27807); gsecss27807 = Math.floor(ddiffs27807.valueOf()/1000); CountBacks27807(gsecss27807);