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 (LeadingZeros32577 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32577(secs) { if (secs < 0) { document.getElementById("cntdwns32577").innerHTML = FinishMessages32577; return; } DisplayStrs32577 = DisplayFormats32577.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32577 = DisplayStrs32577.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32577 = DisplayStrs32577.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32577 = DisplayStrs32577.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32577").innerHTML = DisplayStrs32577; if (CountActives32577) //alert(SetTimeOutPeriods32577); setTimeout("CountBacks32577(" + (secs+CountSteppers32577) + ")", SetTimeOutPeriods32577); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32577)=="undefined") BackColors32577 = ""; if (typeof(ForeColors32577)=="undefined") ForeColors32577= "white"; if (typeof(TargetDates32577)=="undefined") TargetDates32577 = "08/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32577)=="undefined") DisplayFormats32577 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32577)=="undefined") CountActives32577 = true; if (typeof(FinishMessages32577)=="undefined") FinishMessages32577 = ""; if (typeof(CountSteppers32577)!="number") CountSteppers32577 = -1; if (typeof(LeadingZeros32577)=="undefined") LeadingZeros32577 = true; CountSteppers32577 = Math.ceil(CountSteppers32577); if (CountSteppers32577 == 0) CountActives32577 = false; var SetTimeOutPeriods32577 = (Math.abs(CountSteppers32577)-1)*1000 + 990; puti(BackColors32577, ForeColors32577); var dthens32577 = new Date(TargetDates32577); var dnows32577 = new Date("08/17/2025 7:07:21 PM"); if(CountSteppers32577>0) ddiffs32577 = new Date(dnows32577-dthens32577); else ddiffs32577 = new Date(dthens32577-dnows32577); gsecss32577 = Math.floor(ddiffs32577.valueOf()/1000); CountBacks32577(gsecss32577);