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 (LeadingZeros32691 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32691(secs) { if (secs < 0) { document.getElementById("cntdwns32691").innerHTML = FinishMessages32691; return; } DisplayStrs32691 = DisplayFormats32691.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32691 = DisplayStrs32691.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32691 = DisplayStrs32691.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32691 = DisplayStrs32691.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32691").innerHTML = DisplayStrs32691; if (CountActives32691) //alert(SetTimeOutPeriods32691); setTimeout("CountBacks32691(" + (secs+CountSteppers32691) + ")", SetTimeOutPeriods32691); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32691)=="undefined") BackColors32691 = ""; if (typeof(ForeColors32691)=="undefined") ForeColors32691= "white"; if (typeof(TargetDates32691)=="undefined") TargetDates32691 = "08/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32691)=="undefined") DisplayFormats32691 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32691)=="undefined") CountActives32691 = true; if (typeof(FinishMessages32691)=="undefined") FinishMessages32691 = ""; if (typeof(CountSteppers32691)!="number") CountSteppers32691 = -1; if (typeof(LeadingZeros32691)=="undefined") LeadingZeros32691 = true; CountSteppers32691 = Math.ceil(CountSteppers32691); if (CountSteppers32691 == 0) CountActives32691 = false; var SetTimeOutPeriods32691 = (Math.abs(CountSteppers32691)-1)*1000 + 990; puti(BackColors32691, ForeColors32691); var dthens32691 = new Date(TargetDates32691); var dnows32691 = new Date("08/16/2025 5:23:11 PM"); if(CountSteppers32691>0) ddiffs32691 = new Date(dnows32691-dthens32691); else ddiffs32691 = new Date(dthens32691-dnows32691); gsecss32691 = Math.floor(ddiffs32691.valueOf()/1000); CountBacks32691(gsecss32691);