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 (LeadingZeros32871 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32871(secs) { if (secs < 0) { document.getElementById("cntdwns32871").innerHTML = FinishMessages32871; return; } DisplayStrs32871 = DisplayFormats32871.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32871 = DisplayStrs32871.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32871 = DisplayStrs32871.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32871 = DisplayStrs32871.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32871").innerHTML = DisplayStrs32871; if (CountActives32871) //alert(SetTimeOutPeriods32871); setTimeout("CountBacks32871(" + (secs+CountSteppers32871) + ")", SetTimeOutPeriods32871); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32871)=="undefined") BackColors32871 = ""; if (typeof(ForeColors32871)=="undefined") ForeColors32871= "white"; if (typeof(TargetDates32871)=="undefined") TargetDates32871 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32871)=="undefined") DisplayFormats32871 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32871)=="undefined") CountActives32871 = true; if (typeof(FinishMessages32871)=="undefined") FinishMessages32871 = ""; if (typeof(CountSteppers32871)!="number") CountSteppers32871 = -1; if (typeof(LeadingZeros32871)=="undefined") LeadingZeros32871 = true; CountSteppers32871 = Math.ceil(CountSteppers32871); if (CountSteppers32871 == 0) CountActives32871 = false; var SetTimeOutPeriods32871 = (Math.abs(CountSteppers32871)-1)*1000 + 990; puti(BackColors32871, ForeColors32871); var dthens32871 = new Date(TargetDates32871); var dnows32871 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32871>0) ddiffs32871 = new Date(dnows32871-dthens32871); else ddiffs32871 = new Date(dthens32871-dnows32871); gsecss32871 = Math.floor(ddiffs32871.valueOf()/1000); CountBacks32871(gsecss32871);