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 (LeadingZeros31955 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31955(secs) { if (secs < 0) { document.getElementById("cntdwns31955").innerHTML = FinishMessages31955; return; } DisplayStrs31955 = DisplayFormats31955.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31955 = DisplayStrs31955.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31955 = DisplayStrs31955.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31955 = DisplayStrs31955.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31955").innerHTML = DisplayStrs31955; if (CountActives31955) //alert(SetTimeOutPeriods31955); setTimeout("CountBacks31955(" + (secs+CountSteppers31955) + ")", SetTimeOutPeriods31955); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31955)=="undefined") BackColors31955 = ""; if (typeof(ForeColors31955)=="undefined") ForeColors31955= "white"; if (typeof(TargetDates31955)=="undefined") TargetDates31955 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31955)=="undefined") DisplayFormats31955 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31955)=="undefined") CountActives31955 = true; if (typeof(FinishMessages31955)=="undefined") FinishMessages31955 = ""; if (typeof(CountSteppers31955)!="number") CountSteppers31955 = -1; if (typeof(LeadingZeros31955)=="undefined") LeadingZeros31955 = true; CountSteppers31955 = Math.ceil(CountSteppers31955); if (CountSteppers31955 == 0) CountActives31955 = false; var SetTimeOutPeriods31955 = (Math.abs(CountSteppers31955)-1)*1000 + 990; puti(BackColors31955, ForeColors31955); var dthens31955 = new Date(TargetDates31955); var dnows31955 = new Date("03/29/2025 5:37:15 AM"); if(CountSteppers31955>0) ddiffs31955 = new Date(dnows31955-dthens31955); else ddiffs31955 = new Date(dthens31955-dnows31955); gsecss31955 = Math.floor(ddiffs31955.valueOf()/1000); CountBacks31955(gsecss31955);