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 (LeadingZeros27621 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27621(secs) { if (secs < 0) { document.getElementById("cntdwns27621").innerHTML = FinishMessages27621; return; } DisplayStrs27621 = DisplayFormats27621.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27621 = DisplayStrs27621.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27621 = DisplayStrs27621.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27621 = DisplayStrs27621.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27621").innerHTML = DisplayStrs27621; if (CountActives27621) //alert(SetTimeOutPeriods27621); setTimeout("CountBacks27621(" + (secs+CountSteppers27621) + ")", SetTimeOutPeriods27621); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27621)=="undefined") BackColors27621 = ""; if (typeof(ForeColors27621)=="undefined") ForeColors27621= "white"; if (typeof(TargetDates27621)=="undefined") TargetDates27621 = "03/25/2023 10:00:00 PM"; if (typeof(DisplayFormats27621)=="undefined") DisplayFormats27621 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27621)=="undefined") CountActives27621 = true; if (typeof(FinishMessages27621)=="undefined") FinishMessages27621 = ""; if (typeof(CountSteppers27621)!="number") CountSteppers27621 = -1; if (typeof(LeadingZeros27621)=="undefined") LeadingZeros27621 = true; CountSteppers27621 = Math.ceil(CountSteppers27621); if (CountSteppers27621 == 0) CountActives27621 = false; var SetTimeOutPeriods27621 = (Math.abs(CountSteppers27621)-1)*1000 + 990; puti(BackColors27621, ForeColors27621); var dthens27621 = new Date(TargetDates27621); var dnows27621 = new Date("05/13/2025 5:17:15 AM"); if(CountSteppers27621>0) ddiffs27621 = new Date(dnows27621-dthens27621); else ddiffs27621 = new Date(dthens27621-dnows27621); gsecss27621 = Math.floor(ddiffs27621.valueOf()/1000); CountBacks27621(gsecss27621);