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 (LeadingZeros32650 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32650(secs) { if (secs < 0) { document.getElementById("cntdwns32650").innerHTML = FinishMessages32650; return; } DisplayStrs32650 = DisplayFormats32650.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32650 = DisplayStrs32650.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32650 = DisplayStrs32650.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32650 = DisplayStrs32650.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32650").innerHTML = DisplayStrs32650; if (CountActives32650) //alert(SetTimeOutPeriods32650); setTimeout("CountBacks32650(" + (secs+CountSteppers32650) + ")", SetTimeOutPeriods32650); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32650)=="undefined") BackColors32650 = ""; if (typeof(ForeColors32650)=="undefined") ForeColors32650= "white"; if (typeof(TargetDates32650)=="undefined") TargetDates32650 = "08/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32650)=="undefined") DisplayFormats32650 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32650)=="undefined") CountActives32650 = true; if (typeof(FinishMessages32650)=="undefined") FinishMessages32650 = ""; if (typeof(CountSteppers32650)!="number") CountSteppers32650 = -1; if (typeof(LeadingZeros32650)=="undefined") LeadingZeros32650 = true; CountSteppers32650 = Math.ceil(CountSteppers32650); if (CountSteppers32650 == 0) CountActives32650 = false; var SetTimeOutPeriods32650 = (Math.abs(CountSteppers32650)-1)*1000 + 990; puti(BackColors32650, ForeColors32650); var dthens32650 = new Date(TargetDates32650); var dnows32650 = new Date("08/20/2025 5:54:44 AM"); if(CountSteppers32650>0) ddiffs32650 = new Date(dnows32650-dthens32650); else ddiffs32650 = new Date(dthens32650-dnows32650); gsecss32650 = Math.floor(ddiffs32650.valueOf()/1000); CountBacks32650(gsecss32650);