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 (LeadingZeros32502 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32502(secs) { if (secs < 0) { document.getElementById("cntdwns32502").innerHTML = FinishMessages32502; return; } DisplayStrs32502 = DisplayFormats32502.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32502 = DisplayStrs32502.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32502 = DisplayStrs32502.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32502 = DisplayStrs32502.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32502").innerHTML = DisplayStrs32502; if (CountActives32502) //alert(SetTimeOutPeriods32502); setTimeout("CountBacks32502(" + (secs+CountSteppers32502) + ")", SetTimeOutPeriods32502); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32502)=="undefined") BackColors32502 = ""; if (typeof(ForeColors32502)=="undefined") ForeColors32502= "white"; if (typeof(TargetDates32502)=="undefined") TargetDates32502 = "07/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32502)=="undefined") DisplayFormats32502 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32502)=="undefined") CountActives32502 = true; if (typeof(FinishMessages32502)=="undefined") FinishMessages32502 = ""; if (typeof(CountSteppers32502)!="number") CountSteppers32502 = -1; if (typeof(LeadingZeros32502)=="undefined") LeadingZeros32502 = true; CountSteppers32502 = Math.ceil(CountSteppers32502); if (CountSteppers32502 == 0) CountActives32502 = false; var SetTimeOutPeriods32502 = (Math.abs(CountSteppers32502)-1)*1000 + 990; puti(BackColors32502, ForeColors32502); var dthens32502 = new Date(TargetDates32502); var dnows32502 = new Date("07/13/2025 5:38:13 PM"); if(CountSteppers32502>0) ddiffs32502 = new Date(dnows32502-dthens32502); else ddiffs32502 = new Date(dthens32502-dnows32502); gsecss32502 = Math.floor(ddiffs32502.valueOf()/1000); CountBacks32502(gsecss32502);