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 (LeadingZeros27992 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27992(secs) { if (secs < 0) { document.getElementById("cntdwns27992").innerHTML = FinishMessages27992; return; } DisplayStrs27992 = DisplayFormats27992.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27992 = DisplayStrs27992.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27992 = DisplayStrs27992.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27992 = DisplayStrs27992.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27992").innerHTML = DisplayStrs27992; if (CountActives27992) //alert(SetTimeOutPeriods27992); setTimeout("CountBacks27992(" + (secs+CountSteppers27992) + ")", SetTimeOutPeriods27992); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27992)=="undefined") BackColors27992 = ""; if (typeof(ForeColors27992)=="undefined") ForeColors27992= "white"; if (typeof(TargetDates27992)=="undefined") TargetDates27992 = "03/27/2023 11:00:00 PM"; if (typeof(DisplayFormats27992)=="undefined") DisplayFormats27992 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27992)=="undefined") CountActives27992 = true; if (typeof(FinishMessages27992)=="undefined") FinishMessages27992 = ""; if (typeof(CountSteppers27992)!="number") CountSteppers27992 = -1; if (typeof(LeadingZeros27992)=="undefined") LeadingZeros27992 = true; CountSteppers27992 = Math.ceil(CountSteppers27992); if (CountSteppers27992 == 0) CountActives27992 = false; var SetTimeOutPeriods27992 = (Math.abs(CountSteppers27992)-1)*1000 + 990; puti(BackColors27992, ForeColors27992); var dthens27992 = new Date(TargetDates27992); var dnows27992 = new Date("05/13/2025 8:00:43 AM"); if(CountSteppers27992>0) ddiffs27992 = new Date(dnows27992-dthens27992); else ddiffs27992 = new Date(dthens27992-dnows27992); gsecss27992 = Math.floor(ddiffs27992.valueOf()/1000); CountBacks27992(gsecss27992);