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 (LeadingZeros32887 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32887(secs) { if (secs < 0) { document.getElementById("cntdwns32887").innerHTML = FinishMessages32887; return; } DisplayStrs32887 = DisplayFormats32887.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32887 = DisplayStrs32887.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32887 = DisplayStrs32887.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32887 = DisplayStrs32887.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32887").innerHTML = DisplayStrs32887; if (CountActives32887) //alert(SetTimeOutPeriods32887); setTimeout("CountBacks32887(" + (secs+CountSteppers32887) + ")", SetTimeOutPeriods32887); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32887)=="undefined") BackColors32887 = ""; if (typeof(ForeColors32887)=="undefined") ForeColors32887= "white"; if (typeof(TargetDates32887)=="undefined") TargetDates32887 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32887)=="undefined") DisplayFormats32887 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32887)=="undefined") CountActives32887 = true; if (typeof(FinishMessages32887)=="undefined") FinishMessages32887 = ""; if (typeof(CountSteppers32887)!="number") CountSteppers32887 = -1; if (typeof(LeadingZeros32887)=="undefined") LeadingZeros32887 = true; CountSteppers32887 = Math.ceil(CountSteppers32887); if (CountSteppers32887 == 0) CountActives32887 = false; var SetTimeOutPeriods32887 = (Math.abs(CountSteppers32887)-1)*1000 + 990; puti(BackColors32887, ForeColors32887); var dthens32887 = new Date(TargetDates32887); var dnows32887 = new Date("10/09/2025 3:24:57 PM"); if(CountSteppers32887>0) ddiffs32887 = new Date(dnows32887-dthens32887); else ddiffs32887 = new Date(dthens32887-dnows32887); gsecss32887 = Math.floor(ddiffs32887.valueOf()/1000); CountBacks32887(gsecss32887);