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 (LeadingZeros25284 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks25284(secs) { if (secs < 0) { document.getElementById("cntdwns25284").innerHTML = FinishMessages25284; return; } DisplayStrs25284 = DisplayFormats25284.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs25284 = DisplayStrs25284.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs25284 = DisplayStrs25284.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs25284 = DisplayStrs25284.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns25284").innerHTML = DisplayStrs25284; if (CountActives25284) //alert(SetTimeOutPeriods25284); setTimeout("CountBacks25284(" + (secs+CountSteppers25284) + ")", SetTimeOutPeriods25284); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors25284)=="undefined") BackColors25284 = ""; if (typeof(ForeColors25284)=="undefined") ForeColors25284= "white"; if (typeof(TargetDates25284)=="undefined") TargetDates25284 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats25284)=="undefined") DisplayFormats25284 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives25284)=="undefined") CountActives25284 = true; if (typeof(FinishMessages25284)=="undefined") FinishMessages25284 = ""; if (typeof(CountSteppers25284)!="number") CountSteppers25284 = -1; if (typeof(LeadingZeros25284)=="undefined") LeadingZeros25284 = true; CountSteppers25284 = Math.ceil(CountSteppers25284); if (CountSteppers25284 == 0) CountActives25284 = false; var SetTimeOutPeriods25284 = (Math.abs(CountSteppers25284)-1)*1000 + 990; puti(BackColors25284, ForeColors25284); var dthens25284 = new Date(TargetDates25284); var dnows25284 = new Date("05/11/2025 5:42:37 PM"); if(CountSteppers25284>0) ddiffs25284 = new Date(dnows25284-dthens25284); else ddiffs25284 = new Date(dthens25284-dnows25284); gsecss25284 = Math.floor(ddiffs25284.valueOf()/1000); CountBacks25284(gsecss25284);