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 (LeadingZeros31854 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31854(secs) { if (secs < 0) { document.getElementById("cntdwns31854").innerHTML = FinishMessages31854; return; } DisplayStrs31854 = DisplayFormats31854.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31854 = DisplayStrs31854.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31854 = DisplayStrs31854.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31854 = DisplayStrs31854.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31854").innerHTML = DisplayStrs31854; if (CountActives31854) //alert(SetTimeOutPeriods31854); setTimeout("CountBacks31854(" + (secs+CountSteppers31854) + ")", SetTimeOutPeriods31854); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31854)=="undefined") BackColors31854 = ""; if (typeof(ForeColors31854)=="undefined") ForeColors31854= "white"; if (typeof(TargetDates31854)=="undefined") TargetDates31854 = "03/14/2025 10:00:00 PM"; if (typeof(DisplayFormats31854)=="undefined") DisplayFormats31854 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31854)=="undefined") CountActives31854 = true; if (typeof(FinishMessages31854)=="undefined") FinishMessages31854 = ""; if (typeof(CountSteppers31854)!="number") CountSteppers31854 = -1; if (typeof(LeadingZeros31854)=="undefined") LeadingZeros31854 = true; CountSteppers31854 = Math.ceil(CountSteppers31854); if (CountSteppers31854 == 0) CountActives31854 = false; var SetTimeOutPeriods31854 = (Math.abs(CountSteppers31854)-1)*1000 + 990; puti(BackColors31854, ForeColors31854); var dthens31854 = new Date(TargetDates31854); var dnows31854 = new Date("03/13/2025 12:53:44 AM"); if(CountSteppers31854>0) ddiffs31854 = new Date(dnows31854-dthens31854); else ddiffs31854 = new Date(dthens31854-dnows31854); gsecss31854 = Math.floor(ddiffs31854.valueOf()/1000); CountBacks31854(gsecss31854);