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 (LeadingZeros27749 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27749(secs) { if (secs < 0) { document.getElementById("cntdwns27749").innerHTML = FinishMessages27749; return; } DisplayStrs27749 = DisplayFormats27749.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27749 = DisplayStrs27749.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27749 = DisplayStrs27749.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27749 = DisplayStrs27749.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27749").innerHTML = DisplayStrs27749; if (CountActives27749) //alert(SetTimeOutPeriods27749); setTimeout("CountBacks27749(" + (secs+CountSteppers27749) + ")", SetTimeOutPeriods27749); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27749)=="undefined") BackColors27749 = ""; if (typeof(ForeColors27749)=="undefined") ForeColors27749= "white"; if (typeof(TargetDates27749)=="undefined") TargetDates27749 = "03/27/2023 11:00:00 PM"; if (typeof(DisplayFormats27749)=="undefined") DisplayFormats27749 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27749)=="undefined") CountActives27749 = true; if (typeof(FinishMessages27749)=="undefined") FinishMessages27749 = ""; if (typeof(CountSteppers27749)!="number") CountSteppers27749 = -1; if (typeof(LeadingZeros27749)=="undefined") LeadingZeros27749 = true; CountSteppers27749 = Math.ceil(CountSteppers27749); if (CountSteppers27749 == 0) CountActives27749 = false; var SetTimeOutPeriods27749 = (Math.abs(CountSteppers27749)-1)*1000 + 990; puti(BackColors27749, ForeColors27749); var dthens27749 = new Date(TargetDates27749); var dnows27749 = new Date("05/13/2025 7:59:36 AM"); if(CountSteppers27749>0) ddiffs27749 = new Date(dnows27749-dthens27749); else ddiffs27749 = new Date(dthens27749-dnows27749); gsecss27749 = Math.floor(ddiffs27749.valueOf()/1000); CountBacks27749(gsecss27749);