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 (LeadingZeros32665 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32665(secs) { if (secs < 0) { document.getElementById("cntdwns32665").innerHTML = FinishMessages32665; return; } DisplayStrs32665 = DisplayFormats32665.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32665 = DisplayStrs32665.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32665 = DisplayStrs32665.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32665 = DisplayStrs32665.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32665").innerHTML = DisplayStrs32665; if (CountActives32665) //alert(SetTimeOutPeriods32665); setTimeout("CountBacks32665(" + (secs+CountSteppers32665) + ")", SetTimeOutPeriods32665); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32665)=="undefined") BackColors32665 = ""; if (typeof(ForeColors32665)=="undefined") ForeColors32665= "white"; if (typeof(TargetDates32665)=="undefined") TargetDates32665 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32665)=="undefined") DisplayFormats32665 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32665)=="undefined") CountActives32665 = true; if (typeof(FinishMessages32665)=="undefined") FinishMessages32665 = ""; if (typeof(CountSteppers32665)!="number") CountSteppers32665 = -1; if (typeof(LeadingZeros32665)=="undefined") LeadingZeros32665 = true; CountSteppers32665 = Math.ceil(CountSteppers32665); if (CountSteppers32665 == 0) CountActives32665 = false; var SetTimeOutPeriods32665 = (Math.abs(CountSteppers32665)-1)*1000 + 990; puti(BackColors32665, ForeColors32665); var dthens32665 = new Date(TargetDates32665); var dnows32665 = new Date("08/11/2025 2:53:11 PM"); if(CountSteppers32665>0) ddiffs32665 = new Date(dnows32665-dthens32665); else ddiffs32665 = new Date(dthens32665-dnows32665); gsecss32665 = Math.floor(ddiffs32665.valueOf()/1000); CountBacks32665(gsecss32665);