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 (LeadingZeros27503 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27503(secs) { if (secs < 0) { document.getElementById("cntdwns27503").innerHTML = FinishMessages27503; return; } DisplayStrs27503 = DisplayFormats27503.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27503 = DisplayStrs27503.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27503 = DisplayStrs27503.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27503 = DisplayStrs27503.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27503").innerHTML = DisplayStrs27503; if (CountActives27503) //alert(SetTimeOutPeriods27503); setTimeout("CountBacks27503(" + (secs+CountSteppers27503) + ")", SetTimeOutPeriods27503); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27503)=="undefined") BackColors27503 = ""; if (typeof(ForeColors27503)=="undefined") ForeColors27503= "white"; if (typeof(TargetDates27503)=="undefined") TargetDates27503 = "03/26/2023 10:00:00 PM"; if (typeof(DisplayFormats27503)=="undefined") DisplayFormats27503 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27503)=="undefined") CountActives27503 = true; if (typeof(FinishMessages27503)=="undefined") FinishMessages27503 = ""; if (typeof(CountSteppers27503)!="number") CountSteppers27503 = -1; if (typeof(LeadingZeros27503)=="undefined") LeadingZeros27503 = true; CountSteppers27503 = Math.ceil(CountSteppers27503); if (CountSteppers27503 == 0) CountActives27503 = false; var SetTimeOutPeriods27503 = (Math.abs(CountSteppers27503)-1)*1000 + 990; puti(BackColors27503, ForeColors27503); var dthens27503 = new Date(TargetDates27503); var dnows27503 = new Date("05/13/2025 12:00:18 PM"); if(CountSteppers27503>0) ddiffs27503 = new Date(dnows27503-dthens27503); else ddiffs27503 = new Date(dthens27503-dnows27503); gsecss27503 = Math.floor(ddiffs27503.valueOf()/1000); CountBacks27503(gsecss27503);