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 (LeadingZeros27955 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27955(secs) { if (secs < 0) { document.getElementById("cntdwns27955").innerHTML = FinishMessages27955; return; } DisplayStrs27955 = DisplayFormats27955.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27955 = DisplayStrs27955.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27955 = DisplayStrs27955.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27955 = DisplayStrs27955.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27955").innerHTML = DisplayStrs27955; if (CountActives27955) //alert(SetTimeOutPeriods27955); setTimeout("CountBacks27955(" + (secs+CountSteppers27955) + ")", SetTimeOutPeriods27955); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27955)=="undefined") BackColors27955 = ""; if (typeof(ForeColors27955)=="undefined") ForeColors27955= "white"; if (typeof(TargetDates27955)=="undefined") TargetDates27955 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27955)=="undefined") DisplayFormats27955 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27955)=="undefined") CountActives27955 = true; if (typeof(FinishMessages27955)=="undefined") FinishMessages27955 = ""; if (typeof(CountSteppers27955)!="number") CountSteppers27955 = -1; if (typeof(LeadingZeros27955)=="undefined") LeadingZeros27955 = true; CountSteppers27955 = Math.ceil(CountSteppers27955); if (CountSteppers27955 == 0) CountActives27955 = false; var SetTimeOutPeriods27955 = (Math.abs(CountSteppers27955)-1)*1000 + 990; puti(BackColors27955, ForeColors27955); var dthens27955 = new Date(TargetDates27955); var dnows27955 = new Date("05/11/2025 1:36:28 AM"); if(CountSteppers27955>0) ddiffs27955 = new Date(dnows27955-dthens27955); else ddiffs27955 = new Date(dthens27955-dnows27955); gsecss27955 = Math.floor(ddiffs27955.valueOf()/1000); CountBacks27955(gsecss27955);