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 (LeadingZeros32957 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32957(secs) { if (secs < 0) { document.getElementById("cntdwns32957").innerHTML = FinishMessages32957; return; } DisplayStrs32957 = DisplayFormats32957.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32957 = DisplayStrs32957.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32957 = DisplayStrs32957.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32957 = DisplayStrs32957.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32957").innerHTML = DisplayStrs32957; if (CountActives32957) //alert(SetTimeOutPeriods32957); setTimeout("CountBacks32957(" + (secs+CountSteppers32957) + ")", SetTimeOutPeriods32957); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32957)=="undefined") BackColors32957 = ""; if (typeof(ForeColors32957)=="undefined") ForeColors32957= "white"; if (typeof(TargetDates32957)=="undefined") TargetDates32957 = "10/26/2025 9:00:00 PM"; if (typeof(DisplayFormats32957)=="undefined") DisplayFormats32957 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32957)=="undefined") CountActives32957 = true; if (typeof(FinishMessages32957)=="undefined") FinishMessages32957 = ""; if (typeof(CountSteppers32957)!="number") CountSteppers32957 = -1; if (typeof(LeadingZeros32957)=="undefined") LeadingZeros32957 = true; CountSteppers32957 = Math.ceil(CountSteppers32957); if (CountSteppers32957 == 0) CountActives32957 = false; var SetTimeOutPeriods32957 = (Math.abs(CountSteppers32957)-1)*1000 + 990; puti(BackColors32957, ForeColors32957); var dthens32957 = new Date(TargetDates32957); var dnows32957 = new Date("10/25/2025 12:49:41 AM"); if(CountSteppers32957>0) ddiffs32957 = new Date(dnows32957-dthens32957); else ddiffs32957 = new Date(dthens32957-dnows32957); gsecss32957 = Math.floor(ddiffs32957.valueOf()/1000); CountBacks32957(gsecss32957);