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 (LeadingZeros32591 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32591(secs) { if (secs < 0) { document.getElementById("cntdwns32591").innerHTML = FinishMessages32591; return; } DisplayStrs32591 = DisplayFormats32591.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32591 = DisplayStrs32591.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32591 = DisplayStrs32591.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32591 = DisplayStrs32591.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32591").innerHTML = DisplayStrs32591; if (CountActives32591) //alert(SetTimeOutPeriods32591); setTimeout("CountBacks32591(" + (secs+CountSteppers32591) + ")", SetTimeOutPeriods32591); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32591)=="undefined") BackColors32591 = ""; if (typeof(ForeColors32591)=="undefined") ForeColors32591= "white"; if (typeof(TargetDates32591)=="undefined") TargetDates32591 = "07/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32591)=="undefined") DisplayFormats32591 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32591)=="undefined") CountActives32591 = true; if (typeof(FinishMessages32591)=="undefined") FinishMessages32591 = ""; if (typeof(CountSteppers32591)!="number") CountSteppers32591 = -1; if (typeof(LeadingZeros32591)=="undefined") LeadingZeros32591 = true; CountSteppers32591 = Math.ceil(CountSteppers32591); if (CountSteppers32591 == 0) CountActives32591 = false; var SetTimeOutPeriods32591 = (Math.abs(CountSteppers32591)-1)*1000 + 990; puti(BackColors32591, ForeColors32591); var dthens32591 = new Date(TargetDates32591); var dnows32591 = new Date("07/30/2025 6:42:40 PM"); if(CountSteppers32591>0) ddiffs32591 = new Date(dnows32591-dthens32591); else ddiffs32591 = new Date(dthens32591-dnows32591); gsecss32591 = Math.floor(ddiffs32591.valueOf()/1000); CountBacks32591(gsecss32591);