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 (LeadingZeros27948 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27948(secs) { if (secs < 0) { document.getElementById("cntdwns27948").innerHTML = FinishMessages27948; return; } DisplayStrs27948 = DisplayFormats27948.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27948 = DisplayStrs27948.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27948 = DisplayStrs27948.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27948 = DisplayStrs27948.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27948").innerHTML = DisplayStrs27948; if (CountActives27948) //alert(SetTimeOutPeriods27948); setTimeout("CountBacks27948(" + (secs+CountSteppers27948) + ")", SetTimeOutPeriods27948); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27948)=="undefined") BackColors27948 = ""; if (typeof(ForeColors27948)=="undefined") ForeColors27948= "white"; if (typeof(TargetDates27948)=="undefined") TargetDates27948 = "06/13/2023 11:00:00 PM"; if (typeof(DisplayFormats27948)=="undefined") DisplayFormats27948 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27948)=="undefined") CountActives27948 = true; if (typeof(FinishMessages27948)=="undefined") FinishMessages27948 = ""; if (typeof(CountSteppers27948)!="number") CountSteppers27948 = -1; if (typeof(LeadingZeros27948)=="undefined") LeadingZeros27948 = true; CountSteppers27948 = Math.ceil(CountSteppers27948); if (CountSteppers27948 == 0) CountActives27948 = false; var SetTimeOutPeriods27948 = (Math.abs(CountSteppers27948)-1)*1000 + 990; puti(BackColors27948, ForeColors27948); var dthens27948 = new Date(TargetDates27948); var dnows27948 = new Date("05/09/2025 10:11:22 AM"); if(CountSteppers27948>0) ddiffs27948 = new Date(dnows27948-dthens27948); else ddiffs27948 = new Date(dthens27948-dnows27948); gsecss27948 = Math.floor(ddiffs27948.valueOf()/1000); CountBacks27948(gsecss27948);