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 (LeadingZeros32701 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32701(secs) { if (secs < 0) { document.getElementById("cntdwns32701").innerHTML = FinishMessages32701; return; } DisplayStrs32701 = DisplayFormats32701.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32701 = DisplayStrs32701.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32701 = DisplayStrs32701.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32701 = DisplayStrs32701.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32701").innerHTML = DisplayStrs32701; if (CountActives32701) //alert(SetTimeOutPeriods32701); setTimeout("CountBacks32701(" + (secs+CountSteppers32701) + ")", SetTimeOutPeriods32701); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32701)=="undefined") BackColors32701 = ""; if (typeof(ForeColors32701)=="undefined") ForeColors32701= "white"; if (typeof(TargetDates32701)=="undefined") TargetDates32701 = "08/17/2025 10:00:00 PM"; if (typeof(DisplayFormats32701)=="undefined") DisplayFormats32701 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32701)=="undefined") CountActives32701 = true; if (typeof(FinishMessages32701)=="undefined") FinishMessages32701 = ""; if (typeof(CountSteppers32701)!="number") CountSteppers32701 = -1; if (typeof(LeadingZeros32701)=="undefined") LeadingZeros32701 = true; CountSteppers32701 = Math.ceil(CountSteppers32701); if (CountSteppers32701 == 0) CountActives32701 = false; var SetTimeOutPeriods32701 = (Math.abs(CountSteppers32701)-1)*1000 + 990; puti(BackColors32701, ForeColors32701); var dthens32701 = new Date(TargetDates32701); var dnows32701 = new Date("08/15/2025 3:23:04 PM"); if(CountSteppers32701>0) ddiffs32701 = new Date(dnows32701-dthens32701); else ddiffs32701 = new Date(dthens32701-dnows32701); gsecss32701 = Math.floor(ddiffs32701.valueOf()/1000); CountBacks32701(gsecss32701);