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 (LeadingZeros32828 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32828(secs) { if (secs < 0) { document.getElementById("cntdwns32828").innerHTML = FinishMessages32828; return; } DisplayStrs32828 = DisplayFormats32828.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32828 = DisplayStrs32828.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32828 = DisplayStrs32828.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32828 = DisplayStrs32828.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32828").innerHTML = DisplayStrs32828; if (CountActives32828) //alert(SetTimeOutPeriods32828); setTimeout("CountBacks32828(" + (secs+CountSteppers32828) + ")", SetTimeOutPeriods32828); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32828)=="undefined") BackColors32828 = ""; if (typeof(ForeColors32828)=="undefined") ForeColors32828= "white"; if (typeof(TargetDates32828)=="undefined") TargetDates32828 = "09/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32828)=="undefined") DisplayFormats32828 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32828)=="undefined") CountActives32828 = true; if (typeof(FinishMessages32828)=="undefined") FinishMessages32828 = ""; if (typeof(CountSteppers32828)!="number") CountSteppers32828 = -1; if (typeof(LeadingZeros32828)=="undefined") LeadingZeros32828 = true; CountSteppers32828 = Math.ceil(CountSteppers32828); if (CountSteppers32828 == 0) CountActives32828 = false; var SetTimeOutPeriods32828 = (Math.abs(CountSteppers32828)-1)*1000 + 990; puti(BackColors32828, ForeColors32828); var dthens32828 = new Date(TargetDates32828); var dnows32828 = new Date("09/12/2025 5:43:36 PM"); if(CountSteppers32828>0) ddiffs32828 = new Date(dnows32828-dthens32828); else ddiffs32828 = new Date(dthens32828-dnows32828); gsecss32828 = Math.floor(ddiffs32828.valueOf()/1000); CountBacks32828(gsecss32828);