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 (LeadingZeros32973 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32973(secs) { if (secs < 0) { document.getElementById("cntdwns32973").innerHTML = FinishMessages32973; return; } DisplayStrs32973 = DisplayFormats32973.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32973 = DisplayStrs32973.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32973 = DisplayStrs32973.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32973 = DisplayStrs32973.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32973").innerHTML = DisplayStrs32973; if (CountActives32973) //alert(SetTimeOutPeriods32973); setTimeout("CountBacks32973(" + (secs+CountSteppers32973) + ")", SetTimeOutPeriods32973); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32973)=="undefined") BackColors32973 = ""; if (typeof(ForeColors32973)=="undefined") ForeColors32973= "white"; if (typeof(TargetDates32973)=="undefined") TargetDates32973 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32973)=="undefined") DisplayFormats32973 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32973)=="undefined") CountActives32973 = true; if (typeof(FinishMessages32973)=="undefined") FinishMessages32973 = ""; if (typeof(CountSteppers32973)!="number") CountSteppers32973 = -1; if (typeof(LeadingZeros32973)=="undefined") LeadingZeros32973 = true; CountSteppers32973 = Math.ceil(CountSteppers32973); if (CountSteppers32973 == 0) CountActives32973 = false; var SetTimeOutPeriods32973 = (Math.abs(CountSteppers32973)-1)*1000 + 990; puti(BackColors32973, ForeColors32973); var dthens32973 = new Date(TargetDates32973); var dnows32973 = new Date("10/15/2025 7:50:07 PM"); if(CountSteppers32973>0) ddiffs32973 = new Date(dnows32973-dthens32973); else ddiffs32973 = new Date(dthens32973-dnows32973); gsecss32973 = Math.floor(ddiffs32973.valueOf()/1000); CountBacks32973(gsecss32973);