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 (LeadingZeros32818 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32818(secs) { if (secs < 0) { document.getElementById("cntdwns32818").innerHTML = FinishMessages32818; return; } DisplayStrs32818 = DisplayFormats32818.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32818 = DisplayStrs32818.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32818 = DisplayStrs32818.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32818 = DisplayStrs32818.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32818").innerHTML = DisplayStrs32818; if (CountActives32818) //alert(SetTimeOutPeriods32818); setTimeout("CountBacks32818(" + (secs+CountSteppers32818) + ")", SetTimeOutPeriods32818); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32818)=="undefined") BackColors32818 = ""; if (typeof(ForeColors32818)=="undefined") ForeColors32818= "white"; if (typeof(TargetDates32818)=="undefined") TargetDates32818 = "09/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32818)=="undefined") DisplayFormats32818 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32818)=="undefined") CountActives32818 = true; if (typeof(FinishMessages32818)=="undefined") FinishMessages32818 = ""; if (typeof(CountSteppers32818)!="number") CountSteppers32818 = -1; if (typeof(LeadingZeros32818)=="undefined") LeadingZeros32818 = true; CountSteppers32818 = Math.ceil(CountSteppers32818); if (CountSteppers32818 == 0) CountActives32818 = false; var SetTimeOutPeriods32818 = (Math.abs(CountSteppers32818)-1)*1000 + 990; puti(BackColors32818, ForeColors32818); var dthens32818 = new Date(TargetDates32818); var dnows32818 = new Date("09/18/2025 7:53:58 AM"); if(CountSteppers32818>0) ddiffs32818 = new Date(dnows32818-dthens32818); else ddiffs32818 = new Date(dthens32818-dnows32818); gsecss32818 = Math.floor(ddiffs32818.valueOf()/1000); CountBacks32818(gsecss32818);