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 (LeadingZeros27760 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27760(secs) { if (secs < 0) { document.getElementById("cntdwns27760").innerHTML = FinishMessages27760; return; } DisplayStrs27760 = DisplayFormats27760.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27760 = DisplayStrs27760.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27760 = DisplayStrs27760.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27760 = DisplayStrs27760.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27760").innerHTML = DisplayStrs27760; if (CountActives27760) //alert(SetTimeOutPeriods27760); setTimeout("CountBacks27760(" + (secs+CountSteppers27760) + ")", SetTimeOutPeriods27760); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27760)=="undefined") BackColors27760 = ""; if (typeof(ForeColors27760)=="undefined") ForeColors27760= "white"; if (typeof(TargetDates27760)=="undefined") TargetDates27760 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats27760)=="undefined") DisplayFormats27760 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27760)=="undefined") CountActives27760 = true; if (typeof(FinishMessages27760)=="undefined") FinishMessages27760 = ""; if (typeof(CountSteppers27760)!="number") CountSteppers27760 = -1; if (typeof(LeadingZeros27760)=="undefined") LeadingZeros27760 = true; CountSteppers27760 = Math.ceil(CountSteppers27760); if (CountSteppers27760 == 0) CountActives27760 = false; var SetTimeOutPeriods27760 = (Math.abs(CountSteppers27760)-1)*1000 + 990; puti(BackColors27760, ForeColors27760); var dthens27760 = new Date(TargetDates27760); var dnows27760 = new Date("05/13/2025 4:20:39 AM"); if(CountSteppers27760>0) ddiffs27760 = new Date(dnows27760-dthens27760); else ddiffs27760 = new Date(dthens27760-dnows27760); gsecss27760 = Math.floor(ddiffs27760.valueOf()/1000); CountBacks27760(gsecss27760);