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 (LeadingZeros32216 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32216(secs) { if (secs < 0) { document.getElementById("cntdwns32216").innerHTML = FinishMessages32216; return; } DisplayStrs32216 = DisplayFormats32216.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32216 = DisplayStrs32216.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32216 = DisplayStrs32216.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32216 = DisplayStrs32216.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32216").innerHTML = DisplayStrs32216; if (CountActives32216) //alert(SetTimeOutPeriods32216); setTimeout("CountBacks32216(" + (secs+CountSteppers32216) + ")", SetTimeOutPeriods32216); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32216)=="undefined") BackColors32216 = ""; if (typeof(ForeColors32216)=="undefined") ForeColors32216= "white"; if (typeof(TargetDates32216)=="undefined") TargetDates32216 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32216)=="undefined") DisplayFormats32216 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32216)=="undefined") CountActives32216 = true; if (typeof(FinishMessages32216)=="undefined") FinishMessages32216 = ""; if (typeof(CountSteppers32216)!="number") CountSteppers32216 = -1; if (typeof(LeadingZeros32216)=="undefined") LeadingZeros32216 = true; CountSteppers32216 = Math.ceil(CountSteppers32216); if (CountSteppers32216 == 0) CountActives32216 = false; var SetTimeOutPeriods32216 = (Math.abs(CountSteppers32216)-1)*1000 + 990; puti(BackColors32216, ForeColors32216); var dthens32216 = new Date(TargetDates32216); var dnows32216 = new Date("04/19/2025 2:08:36 AM"); if(CountSteppers32216>0) ddiffs32216 = new Date(dnows32216-dthens32216); else ddiffs32216 = new Date(dthens32216-dnows32216); gsecss32216 = Math.floor(ddiffs32216.valueOf()/1000); CountBacks32216(gsecss32216);