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 (LeadingZeros32664 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32664(secs) { if (secs < 0) { document.getElementById("cntdwns32664").innerHTML = FinishMessages32664; return; } DisplayStrs32664 = DisplayFormats32664.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32664 = DisplayStrs32664.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32664 = DisplayStrs32664.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32664 = DisplayStrs32664.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32664").innerHTML = DisplayStrs32664; if (CountActives32664) //alert(SetTimeOutPeriods32664); setTimeout("CountBacks32664(" + (secs+CountSteppers32664) + ")", SetTimeOutPeriods32664); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32664)=="undefined") BackColors32664 = ""; if (typeof(ForeColors32664)=="undefined") ForeColors32664= "white"; if (typeof(TargetDates32664)=="undefined") TargetDates32664 = "08/25/2025 10:00:00 PM"; if (typeof(DisplayFormats32664)=="undefined") DisplayFormats32664 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32664)=="undefined") CountActives32664 = true; if (typeof(FinishMessages32664)=="undefined") FinishMessages32664 = ""; if (typeof(CountSteppers32664)!="number") CountSteppers32664 = -1; if (typeof(LeadingZeros32664)=="undefined") LeadingZeros32664 = true; CountSteppers32664 = Math.ceil(CountSteppers32664); if (CountSteppers32664 == 0) CountActives32664 = false; var SetTimeOutPeriods32664 = (Math.abs(CountSteppers32664)-1)*1000 + 990; puti(BackColors32664, ForeColors32664); var dthens32664 = new Date(TargetDates32664); var dnows32664 = new Date("08/22/2025 8:47:11 AM"); if(CountSteppers32664>0) ddiffs32664 = new Date(dnows32664-dthens32664); else ddiffs32664 = new Date(dthens32664-dnows32664); gsecss32664 = Math.floor(ddiffs32664.valueOf()/1000); CountBacks32664(gsecss32664);