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 (LeadingZeros31858 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31858(secs) { if (secs < 0) { document.getElementById("cntdwns31858").innerHTML = FinishMessages31858; return; } DisplayStrs31858 = DisplayFormats31858.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31858 = DisplayStrs31858.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31858 = DisplayStrs31858.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31858 = DisplayStrs31858.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31858").innerHTML = DisplayStrs31858; if (CountActives31858) //alert(SetTimeOutPeriods31858); setTimeout("CountBacks31858(" + (secs+CountSteppers31858) + ")", SetTimeOutPeriods31858); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31858)=="undefined") BackColors31858 = ""; if (typeof(ForeColors31858)=="undefined") ForeColors31858= "white"; if (typeof(TargetDates31858)=="undefined") TargetDates31858 = "03/13/2025 10:00:00 PM"; if (typeof(DisplayFormats31858)=="undefined") DisplayFormats31858 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31858)=="undefined") CountActives31858 = true; if (typeof(FinishMessages31858)=="undefined") FinishMessages31858 = ""; if (typeof(CountSteppers31858)!="number") CountSteppers31858 = -1; if (typeof(LeadingZeros31858)=="undefined") LeadingZeros31858 = true; CountSteppers31858 = Math.ceil(CountSteppers31858); if (CountSteppers31858 == 0) CountActives31858 = false; var SetTimeOutPeriods31858 = (Math.abs(CountSteppers31858)-1)*1000 + 990; puti(BackColors31858, ForeColors31858); var dthens31858 = new Date(TargetDates31858); var dnows31858 = new Date("03/12/2025 6:42:03 AM"); if(CountSteppers31858>0) ddiffs31858 = new Date(dnows31858-dthens31858); else ddiffs31858 = new Date(dthens31858-dnows31858); gsecss31858 = Math.floor(ddiffs31858.valueOf()/1000); CountBacks31858(gsecss31858);