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 (LeadingZeros31902 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31902(secs) { if (secs < 0) { document.getElementById("cntdwns31902").innerHTML = FinishMessages31902; return; } DisplayStrs31902 = DisplayFormats31902.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31902 = DisplayStrs31902.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31902 = DisplayStrs31902.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31902 = DisplayStrs31902.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31902").innerHTML = DisplayStrs31902; if (CountActives31902) //alert(SetTimeOutPeriods31902); setTimeout("CountBacks31902(" + (secs+CountSteppers31902) + ")", SetTimeOutPeriods31902); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31902)=="undefined") BackColors31902 = ""; if (typeof(ForeColors31902)=="undefined") ForeColors31902= "white"; if (typeof(TargetDates31902)=="undefined") TargetDates31902 = "02/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31902)=="undefined") DisplayFormats31902 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31902)=="undefined") CountActives31902 = true; if (typeof(FinishMessages31902)=="undefined") FinishMessages31902 = ""; if (typeof(CountSteppers31902)!="number") CountSteppers31902 = -1; if (typeof(LeadingZeros31902)=="undefined") LeadingZeros31902 = true; CountSteppers31902 = Math.ceil(CountSteppers31902); if (CountSteppers31902 == 0) CountActives31902 = false; var SetTimeOutPeriods31902 = (Math.abs(CountSteppers31902)-1)*1000 + 990; puti(BackColors31902, ForeColors31902); var dthens31902 = new Date(TargetDates31902); var dnows31902 = new Date("02/25/2025 10:04:16 PM"); if(CountSteppers31902>0) ddiffs31902 = new Date(dnows31902-dthens31902); else ddiffs31902 = new Date(dthens31902-dnows31902); gsecss31902 = Math.floor(ddiffs31902.valueOf()/1000); CountBacks31902(gsecss31902);