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 (LeadingZeros32054 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32054(secs) { if (secs < 0) { document.getElementById("cntdwns32054").innerHTML = FinishMessages32054; return; } DisplayStrs32054 = DisplayFormats32054.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32054 = DisplayStrs32054.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32054 = DisplayStrs32054.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32054 = DisplayStrs32054.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32054").innerHTML = DisplayStrs32054; if (CountActives32054) //alert(SetTimeOutPeriods32054); setTimeout("CountBacks32054(" + (secs+CountSteppers32054) + ")", SetTimeOutPeriods32054); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32054)=="undefined") BackColors32054 = ""; if (typeof(ForeColors32054)=="undefined") ForeColors32054= "white"; if (typeof(TargetDates32054)=="undefined") TargetDates32054 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats32054)=="undefined") DisplayFormats32054 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32054)=="undefined") CountActives32054 = true; if (typeof(FinishMessages32054)=="undefined") FinishMessages32054 = ""; if (typeof(CountSteppers32054)!="number") CountSteppers32054 = -1; if (typeof(LeadingZeros32054)=="undefined") LeadingZeros32054 = true; CountSteppers32054 = Math.ceil(CountSteppers32054); if (CountSteppers32054 == 0) CountActives32054 = false; var SetTimeOutPeriods32054 = (Math.abs(CountSteppers32054)-1)*1000 + 990; puti(BackColors32054, ForeColors32054); var dthens32054 = new Date(TargetDates32054); var dnows32054 = new Date("03/29/2025 4:27:13 PM"); if(CountSteppers32054>0) ddiffs32054 = new Date(dnows32054-dthens32054); else ddiffs32054 = new Date(dthens32054-dnows32054); gsecss32054 = Math.floor(ddiffs32054.valueOf()/1000); CountBacks32054(gsecss32054);