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 (LeadingZeros31891 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31891(secs) { if (secs < 0) { document.getElementById("cntdwns31891").innerHTML = FinishMessages31891; return; } DisplayStrs31891 = DisplayFormats31891.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31891 = DisplayStrs31891.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31891 = DisplayStrs31891.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31891 = DisplayStrs31891.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31891").innerHTML = DisplayStrs31891; if (CountActives31891) //alert(SetTimeOutPeriods31891); setTimeout("CountBacks31891(" + (secs+CountSteppers31891) + ")", SetTimeOutPeriods31891); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31891)=="undefined") BackColors31891 = ""; if (typeof(ForeColors31891)=="undefined") ForeColors31891= "white"; if (typeof(TargetDates31891)=="undefined") TargetDates31891 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31891)=="undefined") DisplayFormats31891 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31891)=="undefined") CountActives31891 = true; if (typeof(FinishMessages31891)=="undefined") FinishMessages31891 = ""; if (typeof(CountSteppers31891)!="number") CountSteppers31891 = -1; if (typeof(LeadingZeros31891)=="undefined") LeadingZeros31891 = true; CountSteppers31891 = Math.ceil(CountSteppers31891); if (CountSteppers31891 == 0) CountActives31891 = false; var SetTimeOutPeriods31891 = (Math.abs(CountSteppers31891)-1)*1000 + 990; puti(BackColors31891, ForeColors31891); var dthens31891 = new Date(TargetDates31891); var dnows31891 = new Date("02/22/2025 9:22:56 PM"); if(CountSteppers31891>0) ddiffs31891 = new Date(dnows31891-dthens31891); else ddiffs31891 = new Date(dthens31891-dnows31891); gsecss31891 = Math.floor(ddiffs31891.valueOf()/1000); CountBacks31891(gsecss31891);