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 (LeadingZeros31996 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31996(secs) { if (secs < 0) { document.getElementById("cntdwns31996").innerHTML = FinishMessages31996; return; } DisplayStrs31996 = DisplayFormats31996.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31996 = DisplayStrs31996.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31996 = DisplayStrs31996.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31996 = DisplayStrs31996.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31996").innerHTML = DisplayStrs31996; if (CountActives31996) //alert(SetTimeOutPeriods31996); setTimeout("CountBacks31996(" + (secs+CountSteppers31996) + ")", SetTimeOutPeriods31996); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31996)=="undefined") BackColors31996 = ""; if (typeof(ForeColors31996)=="undefined") ForeColors31996= "white"; if (typeof(TargetDates31996)=="undefined") TargetDates31996 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31996)=="undefined") DisplayFormats31996 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31996)=="undefined") CountActives31996 = true; if (typeof(FinishMessages31996)=="undefined") FinishMessages31996 = ""; if (typeof(CountSteppers31996)!="number") CountSteppers31996 = -1; if (typeof(LeadingZeros31996)=="undefined") LeadingZeros31996 = true; CountSteppers31996 = Math.ceil(CountSteppers31996); if (CountSteppers31996 == 0) CountActives31996 = false; var SetTimeOutPeriods31996 = (Math.abs(CountSteppers31996)-1)*1000 + 990; puti(BackColors31996, ForeColors31996); var dthens31996 = new Date(TargetDates31996); var dnows31996 = new Date("03/29/2025 4:18:11 PM"); if(CountSteppers31996>0) ddiffs31996 = new Date(dnows31996-dthens31996); else ddiffs31996 = new Date(dthens31996-dnows31996); gsecss31996 = Math.floor(ddiffs31996.valueOf()/1000); CountBacks31996(gsecss31996);