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 (LeadingZeros32867 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32867(secs) { if (secs < 0) { document.getElementById("cntdwns32867").innerHTML = FinishMessages32867; return; } DisplayStrs32867 = DisplayFormats32867.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32867 = DisplayStrs32867.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32867 = DisplayStrs32867.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32867 = DisplayStrs32867.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32867").innerHTML = DisplayStrs32867; if (CountActives32867) //alert(SetTimeOutPeriods32867); setTimeout("CountBacks32867(" + (secs+CountSteppers32867) + ")", SetTimeOutPeriods32867); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32867)=="undefined") BackColors32867 = ""; if (typeof(ForeColors32867)=="undefined") ForeColors32867= "white"; if (typeof(TargetDates32867)=="undefined") TargetDates32867 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32867)=="undefined") DisplayFormats32867 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32867)=="undefined") CountActives32867 = true; if (typeof(FinishMessages32867)=="undefined") FinishMessages32867 = ""; if (typeof(CountSteppers32867)!="number") CountSteppers32867 = -1; if (typeof(LeadingZeros32867)=="undefined") LeadingZeros32867 = true; CountSteppers32867 = Math.ceil(CountSteppers32867); if (CountSteppers32867 == 0) CountActives32867 = false; var SetTimeOutPeriods32867 = (Math.abs(CountSteppers32867)-1)*1000 + 990; puti(BackColors32867, ForeColors32867); var dthens32867 = new Date(TargetDates32867); var dnows32867 = new Date("10/09/2025 3:10:49 PM"); if(CountSteppers32867>0) ddiffs32867 = new Date(dnows32867-dthens32867); else ddiffs32867 = new Date(dthens32867-dnows32867); gsecss32867 = Math.floor(ddiffs32867.valueOf()/1000); CountBacks32867(gsecss32867);