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 (LeadingZeros32757 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32757(secs) { if (secs < 0) { document.getElementById("cntdwns32757").innerHTML = FinishMessages32757; return; } DisplayStrs32757 = DisplayFormats32757.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32757 = DisplayStrs32757.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32757 = DisplayStrs32757.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32757 = DisplayStrs32757.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32757").innerHTML = DisplayStrs32757; if (CountActives32757) //alert(SetTimeOutPeriods32757); setTimeout("CountBacks32757(" + (secs+CountSteppers32757) + ")", SetTimeOutPeriods32757); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32757)=="undefined") BackColors32757 = ""; if (typeof(ForeColors32757)=="undefined") ForeColors32757= "white"; if (typeof(TargetDates32757)=="undefined") TargetDates32757 = "09/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32757)=="undefined") DisplayFormats32757 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32757)=="undefined") CountActives32757 = true; if (typeof(FinishMessages32757)=="undefined") FinishMessages32757 = ""; if (typeof(CountSteppers32757)!="number") CountSteppers32757 = -1; if (typeof(LeadingZeros32757)=="undefined") LeadingZeros32757 = true; CountSteppers32757 = Math.ceil(CountSteppers32757); if (CountSteppers32757 == 0) CountActives32757 = false; var SetTimeOutPeriods32757 = (Math.abs(CountSteppers32757)-1)*1000 + 990; puti(BackColors32757, ForeColors32757); var dthens32757 = new Date(TargetDates32757); var dnows32757 = new Date("09/16/2025 12:22:27 AM"); if(CountSteppers32757>0) ddiffs32757 = new Date(dnows32757-dthens32757); else ddiffs32757 = new Date(dthens32757-dnows32757); gsecss32757 = Math.floor(ddiffs32757.valueOf()/1000); CountBacks32757(gsecss32757);