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 (LeadingZeros27529 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27529(secs) { if (secs < 0) { document.getElementById("cntdwns27529").innerHTML = FinishMessages27529; return; } DisplayStrs27529 = DisplayFormats27529.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27529 = DisplayStrs27529.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27529 = DisplayStrs27529.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27529 = DisplayStrs27529.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27529").innerHTML = DisplayStrs27529; if (CountActives27529) //alert(SetTimeOutPeriods27529); setTimeout("CountBacks27529(" + (secs+CountSteppers27529) + ")", SetTimeOutPeriods27529); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27529)=="undefined") BackColors27529 = ""; if (typeof(ForeColors27529)=="undefined") ForeColors27529= "white"; if (typeof(TargetDates27529)=="undefined") TargetDates27529 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats27529)=="undefined") DisplayFormats27529 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27529)=="undefined") CountActives27529 = true; if (typeof(FinishMessages27529)=="undefined") FinishMessages27529 = ""; if (typeof(CountSteppers27529)!="number") CountSteppers27529 = -1; if (typeof(LeadingZeros27529)=="undefined") LeadingZeros27529 = true; CountSteppers27529 = Math.ceil(CountSteppers27529); if (CountSteppers27529 == 0) CountActives27529 = false; var SetTimeOutPeriods27529 = (Math.abs(CountSteppers27529)-1)*1000 + 990; puti(BackColors27529, ForeColors27529); var dthens27529 = new Date(TargetDates27529); var dnows27529 = new Date("05/13/2025 7:59:36 AM"); if(CountSteppers27529>0) ddiffs27529 = new Date(dnows27529-dthens27529); else ddiffs27529 = new Date(dthens27529-dnows27529); gsecss27529 = Math.floor(ddiffs27529.valueOf()/1000); CountBacks27529(gsecss27529);