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 (LeadingZeros32953 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32953(secs) { if (secs < 0) { document.getElementById("cntdwns32953").innerHTML = FinishMessages32953; return; } DisplayStrs32953 = DisplayFormats32953.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32953 = DisplayStrs32953.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32953 = DisplayStrs32953.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32953 = DisplayStrs32953.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32953").innerHTML = DisplayStrs32953; if (CountActives32953) //alert(SetTimeOutPeriods32953); setTimeout("CountBacks32953(" + (secs+CountSteppers32953) + ")", SetTimeOutPeriods32953); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32953)=="undefined") BackColors32953 = ""; if (typeof(ForeColors32953)=="undefined") ForeColors32953= "white"; if (typeof(TargetDates32953)=="undefined") TargetDates32953 = "10/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32953)=="undefined") DisplayFormats32953 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32953)=="undefined") CountActives32953 = true; if (typeof(FinishMessages32953)=="undefined") FinishMessages32953 = ""; if (typeof(CountSteppers32953)!="number") CountSteppers32953 = -1; if (typeof(LeadingZeros32953)=="undefined") LeadingZeros32953 = true; CountSteppers32953 = Math.ceil(CountSteppers32953); if (CountSteppers32953 == 0) CountActives32953 = false; var SetTimeOutPeriods32953 = (Math.abs(CountSteppers32953)-1)*1000 + 990; puti(BackColors32953, ForeColors32953); var dthens32953 = new Date(TargetDates32953); var dnows32953 = new Date("10/22/2025 7:58:00 PM"); if(CountSteppers32953>0) ddiffs32953 = new Date(dnows32953-dthens32953); else ddiffs32953 = new Date(dthens32953-dnows32953); gsecss32953 = Math.floor(ddiffs32953.valueOf()/1000); CountBacks32953(gsecss32953);