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 (LeadingZeros31958 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31958(secs) { if (secs < 0) { document.getElementById("cntdwns31958").innerHTML = FinishMessages31958; return; } DisplayStrs31958 = DisplayFormats31958.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31958 = DisplayStrs31958.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31958 = DisplayStrs31958.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31958 = DisplayStrs31958.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31958").innerHTML = DisplayStrs31958; if (CountActives31958) //alert(SetTimeOutPeriods31958); setTimeout("CountBacks31958(" + (secs+CountSteppers31958) + ")", SetTimeOutPeriods31958); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31958)=="undefined") BackColors31958 = ""; if (typeof(ForeColors31958)=="undefined") ForeColors31958= "white"; if (typeof(TargetDates31958)=="undefined") TargetDates31958 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31958)=="undefined") DisplayFormats31958 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31958)=="undefined") CountActives31958 = true; if (typeof(FinishMessages31958)=="undefined") FinishMessages31958 = ""; if (typeof(CountSteppers31958)!="number") CountSteppers31958 = -1; if (typeof(LeadingZeros31958)=="undefined") LeadingZeros31958 = true; CountSteppers31958 = Math.ceil(CountSteppers31958); if (CountSteppers31958 == 0) CountActives31958 = false; var SetTimeOutPeriods31958 = (Math.abs(CountSteppers31958)-1)*1000 + 990; puti(BackColors31958, ForeColors31958); var dthens31958 = new Date(TargetDates31958); var dnows31958 = new Date("03/29/2025 4:22:38 PM"); if(CountSteppers31958>0) ddiffs31958 = new Date(dnows31958-dthens31958); else ddiffs31958 = new Date(dthens31958-dnows31958); gsecss31958 = Math.floor(ddiffs31958.valueOf()/1000); CountBacks31958(gsecss31958);