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 (LeadingZeros31889 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31889(secs) { if (secs < 0) { document.getElementById("cntdwns31889").innerHTML = FinishMessages31889; return; } DisplayStrs31889 = DisplayFormats31889.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31889 = DisplayStrs31889.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31889 = DisplayStrs31889.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31889 = DisplayStrs31889.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31889").innerHTML = DisplayStrs31889; if (CountActives31889) //alert(SetTimeOutPeriods31889); setTimeout("CountBacks31889(" + (secs+CountSteppers31889) + ")", SetTimeOutPeriods31889); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31889)=="undefined") BackColors31889 = ""; if (typeof(ForeColors31889)=="undefined") ForeColors31889= "white"; if (typeof(TargetDates31889)=="undefined") TargetDates31889 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31889)=="undefined") DisplayFormats31889 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31889)=="undefined") CountActives31889 = true; if (typeof(FinishMessages31889)=="undefined") FinishMessages31889 = ""; if (typeof(CountSteppers31889)!="number") CountSteppers31889 = -1; if (typeof(LeadingZeros31889)=="undefined") LeadingZeros31889 = true; CountSteppers31889 = Math.ceil(CountSteppers31889); if (CountSteppers31889 == 0) CountActives31889 = false; var SetTimeOutPeriods31889 = (Math.abs(CountSteppers31889)-1)*1000 + 990; puti(BackColors31889, ForeColors31889); var dthens31889 = new Date(TargetDates31889); var dnows31889 = new Date("03/29/2025 3:13:30 PM"); if(CountSteppers31889>0) ddiffs31889 = new Date(dnows31889-dthens31889); else ddiffs31889 = new Date(dthens31889-dnows31889); gsecss31889 = Math.floor(ddiffs31889.valueOf()/1000); CountBacks31889(gsecss31889);