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 (LeadingZeros32706 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32706(secs) { if (secs < 0) { document.getElementById("cntdwns32706").innerHTML = FinishMessages32706; return; } DisplayStrs32706 = DisplayFormats32706.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32706 = DisplayStrs32706.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32706 = DisplayStrs32706.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32706 = DisplayStrs32706.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32706").innerHTML = DisplayStrs32706; if (CountActives32706) //alert(SetTimeOutPeriods32706); setTimeout("CountBacks32706(" + (secs+CountSteppers32706) + ")", SetTimeOutPeriods32706); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32706)=="undefined") BackColors32706 = ""; if (typeof(ForeColors32706)=="undefined") ForeColors32706= "white"; if (typeof(TargetDates32706)=="undefined") TargetDates32706 = "08/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32706)=="undefined") DisplayFormats32706 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32706)=="undefined") CountActives32706 = true; if (typeof(FinishMessages32706)=="undefined") FinishMessages32706 = ""; if (typeof(CountSteppers32706)!="number") CountSteppers32706 = -1; if (typeof(LeadingZeros32706)=="undefined") LeadingZeros32706 = true; CountSteppers32706 = Math.ceil(CountSteppers32706); if (CountSteppers32706 == 0) CountActives32706 = false; var SetTimeOutPeriods32706 = (Math.abs(CountSteppers32706)-1)*1000 + 990; puti(BackColors32706, ForeColors32706); var dthens32706 = new Date(TargetDates32706); var dnows32706 = new Date("08/27/2025 2:08:18 PM"); if(CountSteppers32706>0) ddiffs32706 = new Date(dnows32706-dthens32706); else ddiffs32706 = new Date(dthens32706-dnows32706); gsecss32706 = Math.floor(ddiffs32706.valueOf()/1000); CountBacks32706(gsecss32706);