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 (LeadingZeros32841 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32841(secs) { if (secs < 0) { document.getElementById("cntdwns32841").innerHTML = FinishMessages32841; return; } DisplayStrs32841 = DisplayFormats32841.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32841 = DisplayStrs32841.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32841 = DisplayStrs32841.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32841 = DisplayStrs32841.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32841").innerHTML = DisplayStrs32841; if (CountActives32841) //alert(SetTimeOutPeriods32841); setTimeout("CountBacks32841(" + (secs+CountSteppers32841) + ")", SetTimeOutPeriods32841); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32841)=="undefined") BackColors32841 = ""; if (typeof(ForeColors32841)=="undefined") ForeColors32841= "white"; if (typeof(TargetDates32841)=="undefined") TargetDates32841 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32841)=="undefined") DisplayFormats32841 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32841)=="undefined") CountActives32841 = true; if (typeof(FinishMessages32841)=="undefined") FinishMessages32841 = ""; if (typeof(CountSteppers32841)!="number") CountSteppers32841 = -1; if (typeof(LeadingZeros32841)=="undefined") LeadingZeros32841 = true; CountSteppers32841 = Math.ceil(CountSteppers32841); if (CountSteppers32841 == 0) CountActives32841 = false; var SetTimeOutPeriods32841 = (Math.abs(CountSteppers32841)-1)*1000 + 990; puti(BackColors32841, ForeColors32841); var dthens32841 = new Date(TargetDates32841); var dnows32841 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32841>0) ddiffs32841 = new Date(dnows32841-dthens32841); else ddiffs32841 = new Date(dthens32841-dnows32841); gsecss32841 = Math.floor(ddiffs32841.valueOf()/1000); CountBacks32841(gsecss32841);