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 (LeadingZeros32896 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32896(secs) { if (secs < 0) { document.getElementById("cntdwns32896").innerHTML = FinishMessages32896; return; } DisplayStrs32896 = DisplayFormats32896.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32896 = DisplayStrs32896.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32896 = DisplayStrs32896.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32896 = DisplayStrs32896.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32896").innerHTML = DisplayStrs32896; if (CountActives32896) //alert(SetTimeOutPeriods32896); setTimeout("CountBacks32896(" + (secs+CountSteppers32896) + ")", SetTimeOutPeriods32896); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32896)=="undefined") BackColors32896 = ""; if (typeof(ForeColors32896)=="undefined") ForeColors32896= "white"; if (typeof(TargetDates32896)=="undefined") TargetDates32896 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32896)=="undefined") DisplayFormats32896 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32896)=="undefined") CountActives32896 = true; if (typeof(FinishMessages32896)=="undefined") FinishMessages32896 = ""; if (typeof(CountSteppers32896)!="number") CountSteppers32896 = -1; if (typeof(LeadingZeros32896)=="undefined") LeadingZeros32896 = true; CountSteppers32896 = Math.ceil(CountSteppers32896); if (CountSteppers32896 == 0) CountActives32896 = false; var SetTimeOutPeriods32896 = (Math.abs(CountSteppers32896)-1)*1000 + 990; puti(BackColors32896, ForeColors32896); var dthens32896 = new Date(TargetDates32896); var dnows32896 = new Date("10/09/2025 1:55:17 AM"); if(CountSteppers32896>0) ddiffs32896 = new Date(dnows32896-dthens32896); else ddiffs32896 = new Date(dthens32896-dnows32896); gsecss32896 = Math.floor(ddiffs32896.valueOf()/1000); CountBacks32896(gsecss32896);