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 (LeadingZeros27559 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27559(secs) { if (secs < 0) { document.getElementById("cntdwns27559").innerHTML = FinishMessages27559; return; } DisplayStrs27559 = DisplayFormats27559.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27559 = DisplayStrs27559.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27559 = DisplayStrs27559.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27559 = DisplayStrs27559.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27559").innerHTML = DisplayStrs27559; if (CountActives27559) //alert(SetTimeOutPeriods27559); setTimeout("CountBacks27559(" + (secs+CountSteppers27559) + ")", SetTimeOutPeriods27559); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27559)=="undefined") BackColors27559 = ""; if (typeof(ForeColors27559)=="undefined") ForeColors27559= "white"; if (typeof(TargetDates27559)=="undefined") TargetDates27559 = "06/08/2023 11:00:00 PM"; if (typeof(DisplayFormats27559)=="undefined") DisplayFormats27559 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27559)=="undefined") CountActives27559 = true; if (typeof(FinishMessages27559)=="undefined") FinishMessages27559 = ""; if (typeof(CountSteppers27559)!="number") CountSteppers27559 = -1; if (typeof(LeadingZeros27559)=="undefined") LeadingZeros27559 = true; CountSteppers27559 = Math.ceil(CountSteppers27559); if (CountSteppers27559 == 0) CountActives27559 = false; var SetTimeOutPeriods27559 = (Math.abs(CountSteppers27559)-1)*1000 + 990; puti(BackColors27559, ForeColors27559); var dthens27559 = new Date(TargetDates27559); var dnows27559 = new Date("05/11/2025 7:46:31 AM"); if(CountSteppers27559>0) ddiffs27559 = new Date(dnows27559-dthens27559); else ddiffs27559 = new Date(dthens27559-dnows27559); gsecss27559 = Math.floor(ddiffs27559.valueOf()/1000); CountBacks27559(gsecss27559);