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 (LeadingZeros32616 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32616(secs) { if (secs < 0) { document.getElementById("cntdwns32616").innerHTML = FinishMessages32616; return; } DisplayStrs32616 = DisplayFormats32616.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32616 = DisplayStrs32616.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32616 = DisplayStrs32616.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32616 = DisplayStrs32616.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32616").innerHTML = DisplayStrs32616; if (CountActives32616) //alert(SetTimeOutPeriods32616); setTimeout("CountBacks32616(" + (secs+CountSteppers32616) + ")", SetTimeOutPeriods32616); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32616)=="undefined") BackColors32616 = ""; if (typeof(ForeColors32616)=="undefined") ForeColors32616= "white"; if (typeof(TargetDates32616)=="undefined") TargetDates32616 = "08/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32616)=="undefined") DisplayFormats32616 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32616)=="undefined") CountActives32616 = true; if (typeof(FinishMessages32616)=="undefined") FinishMessages32616 = ""; if (typeof(CountSteppers32616)!="number") CountSteppers32616 = -1; if (typeof(LeadingZeros32616)=="undefined") LeadingZeros32616 = true; CountSteppers32616 = Math.ceil(CountSteppers32616); if (CountSteppers32616 == 0) CountActives32616 = false; var SetTimeOutPeriods32616 = (Math.abs(CountSteppers32616)-1)*1000 + 990; puti(BackColors32616, ForeColors32616); var dthens32616 = new Date(TargetDates32616); var dnows32616 = new Date("08/18/2025 1:14:22 AM"); if(CountSteppers32616>0) ddiffs32616 = new Date(dnows32616-dthens32616); else ddiffs32616 = new Date(dthens32616-dnows32616); gsecss32616 = Math.floor(ddiffs32616.valueOf()/1000); CountBacks32616(gsecss32616);