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 (LeadingZeros25285 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks25285(secs) { if (secs < 0) { document.getElementById("cntdwns25285").innerHTML = FinishMessages25285; return; } DisplayStrs25285 = DisplayFormats25285.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs25285 = DisplayStrs25285.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs25285 = DisplayStrs25285.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs25285 = DisplayStrs25285.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns25285").innerHTML = DisplayStrs25285; if (CountActives25285) //alert(SetTimeOutPeriods25285); setTimeout("CountBacks25285(" + (secs+CountSteppers25285) + ")", SetTimeOutPeriods25285); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors25285)=="undefined") BackColors25285 = ""; if (typeof(ForeColors25285)=="undefined") ForeColors25285= "white"; if (typeof(TargetDates25285)=="undefined") TargetDates25285 = "06/13/2023 11:00:00 PM"; if (typeof(DisplayFormats25285)=="undefined") DisplayFormats25285 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives25285)=="undefined") CountActives25285 = true; if (typeof(FinishMessages25285)=="undefined") FinishMessages25285 = ""; if (typeof(CountSteppers25285)!="number") CountSteppers25285 = -1; if (typeof(LeadingZeros25285)=="undefined") LeadingZeros25285 = true; CountSteppers25285 = Math.ceil(CountSteppers25285); if (CountSteppers25285 == 0) CountActives25285 = false; var SetTimeOutPeriods25285 = (Math.abs(CountSteppers25285)-1)*1000 + 990; puti(BackColors25285, ForeColors25285); var dthens25285 = new Date(TargetDates25285); var dnows25285 = new Date("05/11/2025 5:42:37 PM"); if(CountSteppers25285>0) ddiffs25285 = new Date(dnows25285-dthens25285); else ddiffs25285 = new Date(dthens25285-dnows25285); gsecss25285 = Math.floor(ddiffs25285.valueOf()/1000); CountBacks25285(gsecss25285);