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 (LeadingZeros32498 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32498(secs) { if (secs < 0) { document.getElementById("cntdwns32498").innerHTML = FinishMessages32498; return; } DisplayStrs32498 = DisplayFormats32498.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32498 = DisplayStrs32498.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32498 = DisplayStrs32498.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32498 = DisplayStrs32498.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32498").innerHTML = DisplayStrs32498; if (CountActives32498) //alert(SetTimeOutPeriods32498); setTimeout("CountBacks32498(" + (secs+CountSteppers32498) + ")", SetTimeOutPeriods32498); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32498)=="undefined") BackColors32498 = ""; if (typeof(ForeColors32498)=="undefined") ForeColors32498= "white"; if (typeof(TargetDates32498)=="undefined") TargetDates32498 = "08/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32498)=="undefined") DisplayFormats32498 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32498)=="undefined") CountActives32498 = true; if (typeof(FinishMessages32498)=="undefined") FinishMessages32498 = ""; if (typeof(CountSteppers32498)!="number") CountSteppers32498 = -1; if (typeof(LeadingZeros32498)=="undefined") LeadingZeros32498 = true; CountSteppers32498 = Math.ceil(CountSteppers32498); if (CountSteppers32498 == 0) CountActives32498 = false; var SetTimeOutPeriods32498 = (Math.abs(CountSteppers32498)-1)*1000 + 990; puti(BackColors32498, ForeColors32498); var dthens32498 = new Date(TargetDates32498); var dnows32498 = new Date("08/21/2025 11:25:20 AM"); if(CountSteppers32498>0) ddiffs32498 = new Date(dnows32498-dthens32498); else ddiffs32498 = new Date(dthens32498-dnows32498); gsecss32498 = Math.floor(ddiffs32498.valueOf()/1000); CountBacks32498(gsecss32498);