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 (LeadingZeros32952 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32952(secs) { if (secs < 0) { document.getElementById("cntdwns32952").innerHTML = FinishMessages32952; return; } DisplayStrs32952 = DisplayFormats32952.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32952 = DisplayStrs32952.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32952 = DisplayStrs32952.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32952 = DisplayStrs32952.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32952").innerHTML = DisplayStrs32952; if (CountActives32952) //alert(SetTimeOutPeriods32952); setTimeout("CountBacks32952(" + (secs+CountSteppers32952) + ")", SetTimeOutPeriods32952); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32952)=="undefined") BackColors32952 = ""; if (typeof(ForeColors32952)=="undefined") ForeColors32952= "white"; if (typeof(TargetDates32952)=="undefined") TargetDates32952 = "10/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32952)=="undefined") DisplayFormats32952 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32952)=="undefined") CountActives32952 = true; if (typeof(FinishMessages32952)=="undefined") FinishMessages32952 = ""; if (typeof(CountSteppers32952)!="number") CountSteppers32952 = -1; if (typeof(LeadingZeros32952)=="undefined") LeadingZeros32952 = true; CountSteppers32952 = Math.ceil(CountSteppers32952); if (CountSteppers32952 == 0) CountActives32952 = false; var SetTimeOutPeriods32952 = (Math.abs(CountSteppers32952)-1)*1000 + 990; puti(BackColors32952, ForeColors32952); var dthens32952 = new Date(TargetDates32952); var dnows32952 = new Date("10/22/2025 8:02:01 PM"); if(CountSteppers32952>0) ddiffs32952 = new Date(dnows32952-dthens32952); else ddiffs32952 = new Date(dthens32952-dnows32952); gsecss32952 = Math.floor(ddiffs32952.valueOf()/1000); CountBacks32952(gsecss32952);