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 (LeadingZeros32911 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32911(secs) { if (secs < 0) { document.getElementById("cntdwns32911").innerHTML = FinishMessages32911; return; } DisplayStrs32911 = DisplayFormats32911.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32911 = DisplayStrs32911.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32911 = DisplayStrs32911.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32911 = DisplayStrs32911.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32911").innerHTML = DisplayStrs32911; if (CountActives32911) //alert(SetTimeOutPeriods32911); setTimeout("CountBacks32911(" + (secs+CountSteppers32911) + ")", SetTimeOutPeriods32911); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32911)=="undefined") BackColors32911 = ""; if (typeof(ForeColors32911)=="undefined") ForeColors32911= "white"; if (typeof(TargetDates32911)=="undefined") TargetDates32911 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32911)=="undefined") DisplayFormats32911 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32911)=="undefined") CountActives32911 = true; if (typeof(FinishMessages32911)=="undefined") FinishMessages32911 = ""; if (typeof(CountSteppers32911)!="number") CountSteppers32911 = -1; if (typeof(LeadingZeros32911)=="undefined") LeadingZeros32911 = true; CountSteppers32911 = Math.ceil(CountSteppers32911); if (CountSteppers32911 == 0) CountActives32911 = false; var SetTimeOutPeriods32911 = (Math.abs(CountSteppers32911)-1)*1000 + 990; puti(BackColors32911, ForeColors32911); var dthens32911 = new Date(TargetDates32911); var dnows32911 = new Date("10/17/2025 7:52:07 AM"); if(CountSteppers32911>0) ddiffs32911 = new Date(dnows32911-dthens32911); else ddiffs32911 = new Date(dthens32911-dnows32911); gsecss32911 = Math.floor(ddiffs32911.valueOf()/1000); CountBacks32911(gsecss32911);