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 (LeadingZeros27990 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27990(secs) { if (secs < 0) { document.getElementById("cntdwns27990").innerHTML = FinishMessages27990; return; } DisplayStrs27990 = DisplayFormats27990.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27990 = DisplayStrs27990.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27990 = DisplayStrs27990.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27990 = DisplayStrs27990.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27990").innerHTML = DisplayStrs27990; if (CountActives27990) //alert(SetTimeOutPeriods27990); setTimeout("CountBacks27990(" + (secs+CountSteppers27990) + ")", SetTimeOutPeriods27990); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27990)=="undefined") BackColors27990 = ""; if (typeof(ForeColors27990)=="undefined") ForeColors27990= "white"; if (typeof(TargetDates27990)=="undefined") TargetDates27990 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats27990)=="undefined") DisplayFormats27990 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27990)=="undefined") CountActives27990 = true; if (typeof(FinishMessages27990)=="undefined") FinishMessages27990 = ""; if (typeof(CountSteppers27990)!="number") CountSteppers27990 = -1; if (typeof(LeadingZeros27990)=="undefined") LeadingZeros27990 = true; CountSteppers27990 = Math.ceil(CountSteppers27990); if (CountSteppers27990 == 0) CountActives27990 = false; var SetTimeOutPeriods27990 = (Math.abs(CountSteppers27990)-1)*1000 + 990; puti(BackColors27990, ForeColors27990); var dthens27990 = new Date(TargetDates27990); var dnows27990 = new Date("05/13/2025 8:00:43 AM"); if(CountSteppers27990>0) ddiffs27990 = new Date(dnows27990-dthens27990); else ddiffs27990 = new Date(dthens27990-dnows27990); gsecss27990 = Math.floor(ddiffs27990.valueOf()/1000); CountBacks27990(gsecss27990);