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 (LeadingZeros32711 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32711(secs) { if (secs < 0) { document.getElementById("cntdwns32711").innerHTML = FinishMessages32711; return; } DisplayStrs32711 = DisplayFormats32711.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32711 = DisplayStrs32711.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32711 = DisplayStrs32711.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32711 = DisplayStrs32711.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32711").innerHTML = DisplayStrs32711; if (CountActives32711) //alert(SetTimeOutPeriods32711); setTimeout("CountBacks32711(" + (secs+CountSteppers32711) + ")", SetTimeOutPeriods32711); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32711)=="undefined") BackColors32711 = ""; if (typeof(ForeColors32711)=="undefined") ForeColors32711= "white"; if (typeof(TargetDates32711)=="undefined") TargetDates32711 = "08/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32711)=="undefined") DisplayFormats32711 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32711)=="undefined") CountActives32711 = true; if (typeof(FinishMessages32711)=="undefined") FinishMessages32711 = ""; if (typeof(CountSteppers32711)!="number") CountSteppers32711 = -1; if (typeof(LeadingZeros32711)=="undefined") LeadingZeros32711 = true; CountSteppers32711 = Math.ceil(CountSteppers32711); if (CountSteppers32711 == 0) CountActives32711 = false; var SetTimeOutPeriods32711 = (Math.abs(CountSteppers32711)-1)*1000 + 990; puti(BackColors32711, ForeColors32711); var dthens32711 = new Date(TargetDates32711); var dnows32711 = new Date("08/20/2025 5:54:45 AM"); if(CountSteppers32711>0) ddiffs32711 = new Date(dnows32711-dthens32711); else ddiffs32711 = new Date(dthens32711-dnows32711); gsecss32711 = Math.floor(ddiffs32711.valueOf()/1000); CountBacks32711(gsecss32711);