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 (LeadingZeros27454 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27454(secs) { if (secs < 0) { document.getElementById("cntdwns27454").innerHTML = FinishMessages27454; return; } DisplayStrs27454 = DisplayFormats27454.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27454 = DisplayStrs27454.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27454 = DisplayStrs27454.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27454 = DisplayStrs27454.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27454").innerHTML = DisplayStrs27454; if (CountActives27454) //alert(SetTimeOutPeriods27454); setTimeout("CountBacks27454(" + (secs+CountSteppers27454) + ")", SetTimeOutPeriods27454); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27454)=="undefined") BackColors27454 = ""; if (typeof(ForeColors27454)=="undefined") ForeColors27454= "white"; if (typeof(TargetDates27454)=="undefined") TargetDates27454 = "03/26/2023 11:00:00 PM"; if (typeof(DisplayFormats27454)=="undefined") DisplayFormats27454 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27454)=="undefined") CountActives27454 = true; if (typeof(FinishMessages27454)=="undefined") FinishMessages27454 = ""; if (typeof(CountSteppers27454)!="number") CountSteppers27454 = -1; if (typeof(LeadingZeros27454)=="undefined") LeadingZeros27454 = true; CountSteppers27454 = Math.ceil(CountSteppers27454); if (CountSteppers27454 == 0) CountActives27454 = false; var SetTimeOutPeriods27454 = (Math.abs(CountSteppers27454)-1)*1000 + 990; puti(BackColors27454, ForeColors27454); var dthens27454 = new Date(TargetDates27454); var dnows27454 = new Date("05/13/2025 12:00:17 PM"); if(CountSteppers27454>0) ddiffs27454 = new Date(dnows27454-dthens27454); else ddiffs27454 = new Date(dthens27454-dnows27454); gsecss27454 = Math.floor(ddiffs27454.valueOf()/1000); CountBacks27454(gsecss27454);