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 (LeadingZeros27762 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27762(secs) { if (secs < 0) { document.getElementById("cntdwns27762").innerHTML = FinishMessages27762; return; } DisplayStrs27762 = DisplayFormats27762.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27762 = DisplayStrs27762.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27762 = DisplayStrs27762.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27762 = DisplayStrs27762.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27762").innerHTML = DisplayStrs27762; if (CountActives27762) //alert(SetTimeOutPeriods27762); setTimeout("CountBacks27762(" + (secs+CountSteppers27762) + ")", SetTimeOutPeriods27762); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27762)=="undefined") BackColors27762 = ""; if (typeof(ForeColors27762)=="undefined") ForeColors27762= "white"; if (typeof(TargetDates27762)=="undefined") TargetDates27762 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27762)=="undefined") DisplayFormats27762 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27762)=="undefined") CountActives27762 = true; if (typeof(FinishMessages27762)=="undefined") FinishMessages27762 = ""; if (typeof(CountSteppers27762)!="number") CountSteppers27762 = -1; if (typeof(LeadingZeros27762)=="undefined") LeadingZeros27762 = true; CountSteppers27762 = Math.ceil(CountSteppers27762); if (CountSteppers27762 == 0) CountActives27762 = false; var SetTimeOutPeriods27762 = (Math.abs(CountSteppers27762)-1)*1000 + 990; puti(BackColors27762, ForeColors27762); var dthens27762 = new Date(TargetDates27762); var dnows27762 = new Date("05/11/2025 7:46:32 AM"); if(CountSteppers27762>0) ddiffs27762 = new Date(dnows27762-dthens27762); else ddiffs27762 = new Date(dthens27762-dnows27762); gsecss27762 = Math.floor(ddiffs27762.valueOf()/1000); CountBacks27762(gsecss27762);