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 (LeadingZeros31913 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31913(secs) { if (secs < 0) { document.getElementById("cntdwns31913").innerHTML = FinishMessages31913; return; } DisplayStrs31913 = DisplayFormats31913.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31913 = DisplayStrs31913.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31913 = DisplayStrs31913.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31913 = DisplayStrs31913.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31913").innerHTML = DisplayStrs31913; if (CountActives31913) //alert(SetTimeOutPeriods31913); setTimeout("CountBacks31913(" + (secs+CountSteppers31913) + ")", SetTimeOutPeriods31913); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31913)=="undefined") BackColors31913 = ""; if (typeof(ForeColors31913)=="undefined") ForeColors31913= "white"; if (typeof(TargetDates31913)=="undefined") TargetDates31913 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31913)=="undefined") DisplayFormats31913 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31913)=="undefined") CountActives31913 = true; if (typeof(FinishMessages31913)=="undefined") FinishMessages31913 = ""; if (typeof(CountSteppers31913)!="number") CountSteppers31913 = -1; if (typeof(LeadingZeros31913)=="undefined") LeadingZeros31913 = true; CountSteppers31913 = Math.ceil(CountSteppers31913); if (CountSteppers31913 == 0) CountActives31913 = false; var SetTimeOutPeriods31913 = (Math.abs(CountSteppers31913)-1)*1000 + 990; puti(BackColors31913, ForeColors31913); var dthens31913 = new Date(TargetDates31913); var dnows31913 = new Date("03/29/2025 6:40:02 AM"); if(CountSteppers31913>0) ddiffs31913 = new Date(dnows31913-dthens31913); else ddiffs31913 = new Date(dthens31913-dnows31913); gsecss31913 = Math.floor(ddiffs31913.valueOf()/1000); CountBacks31913(gsecss31913);