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 (LeadingZeros27967 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27967(secs) { if (secs < 0) { document.getElementById("cntdwns27967").innerHTML = FinishMessages27967; return; } DisplayStrs27967 = DisplayFormats27967.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27967 = DisplayStrs27967.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27967 = DisplayStrs27967.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27967 = DisplayStrs27967.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27967").innerHTML = DisplayStrs27967; if (CountActives27967) //alert(SetTimeOutPeriods27967); setTimeout("CountBacks27967(" + (secs+CountSteppers27967) + ")", SetTimeOutPeriods27967); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27967)=="undefined") BackColors27967 = ""; if (typeof(ForeColors27967)=="undefined") ForeColors27967= "white"; if (typeof(TargetDates27967)=="undefined") TargetDates27967 = "09/25/2023 10:00:00 PM"; if (typeof(DisplayFormats27967)=="undefined") DisplayFormats27967 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27967)=="undefined") CountActives27967 = true; if (typeof(FinishMessages27967)=="undefined") FinishMessages27967 = ""; if (typeof(CountSteppers27967)!="number") CountSteppers27967 = -1; if (typeof(LeadingZeros27967)=="undefined") LeadingZeros27967 = true; CountSteppers27967 = Math.ceil(CountSteppers27967); if (CountSteppers27967 == 0) CountActives27967 = false; var SetTimeOutPeriods27967 = (Math.abs(CountSteppers27967)-1)*1000 + 990; puti(BackColors27967, ForeColors27967); var dthens27967 = new Date(TargetDates27967); var dnows27967 = new Date("05/09/2025 10:06:57 AM"); if(CountSteppers27967>0) ddiffs27967 = new Date(dnows27967-dthens27967); else ddiffs27967 = new Date(dthens27967-dnows27967); gsecss27967 = Math.floor(ddiffs27967.valueOf()/1000); CountBacks27967(gsecss27967);