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 (LeadingZeros32669 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32669(secs) { if (secs < 0) { document.getElementById("cntdwns32669").innerHTML = FinishMessages32669; return; } DisplayStrs32669 = DisplayFormats32669.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32669 = DisplayStrs32669.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32669 = DisplayStrs32669.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32669 = DisplayStrs32669.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32669").innerHTML = DisplayStrs32669; if (CountActives32669) //alert(SetTimeOutPeriods32669); setTimeout("CountBacks32669(" + (secs+CountSteppers32669) + ")", SetTimeOutPeriods32669); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32669)=="undefined") BackColors32669 = ""; if (typeof(ForeColors32669)=="undefined") ForeColors32669= "white"; if (typeof(TargetDates32669)=="undefined") TargetDates32669 = "08/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32669)=="undefined") DisplayFormats32669 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32669)=="undefined") CountActives32669 = true; if (typeof(FinishMessages32669)=="undefined") FinishMessages32669 = ""; if (typeof(CountSteppers32669)!="number") CountSteppers32669 = -1; if (typeof(LeadingZeros32669)=="undefined") LeadingZeros32669 = true; CountSteppers32669 = Math.ceil(CountSteppers32669); if (CountSteppers32669 == 0) CountActives32669 = false; var SetTimeOutPeriods32669 = (Math.abs(CountSteppers32669)-1)*1000 + 990; puti(BackColors32669, ForeColors32669); var dthens32669 = new Date(TargetDates32669); var dnows32669 = new Date("08/17/2025 8:21:38 AM"); if(CountSteppers32669>0) ddiffs32669 = new Date(dnows32669-dthens32669); else ddiffs32669 = new Date(dthens32669-dnows32669); gsecss32669 = Math.floor(ddiffs32669.valueOf()/1000); CountBacks32669(gsecss32669);