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 (LeadingZeros32552 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32552(secs) { if (secs < 0) { document.getElementById("cntdwns32552").innerHTML = FinishMessages32552; return; } DisplayStrs32552 = DisplayFormats32552.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32552 = DisplayStrs32552.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32552 = DisplayStrs32552.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32552 = DisplayStrs32552.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32552").innerHTML = DisplayStrs32552; if (CountActives32552) //alert(SetTimeOutPeriods32552); setTimeout("CountBacks32552(" + (secs+CountSteppers32552) + ")", SetTimeOutPeriods32552); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32552)=="undefined") BackColors32552 = ""; if (typeof(ForeColors32552)=="undefined") ForeColors32552= "white"; if (typeof(TargetDates32552)=="undefined") TargetDates32552 = "07/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32552)=="undefined") DisplayFormats32552 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32552)=="undefined") CountActives32552 = true; if (typeof(FinishMessages32552)=="undefined") FinishMessages32552 = ""; if (typeof(CountSteppers32552)!="number") CountSteppers32552 = -1; if (typeof(LeadingZeros32552)=="undefined") LeadingZeros32552 = true; CountSteppers32552 = Math.ceil(CountSteppers32552); if (CountSteppers32552 == 0) CountActives32552 = false; var SetTimeOutPeriods32552 = (Math.abs(CountSteppers32552)-1)*1000 + 990; puti(BackColors32552, ForeColors32552); var dthens32552 = new Date(TargetDates32552); var dnows32552 = new Date("07/06/2025 12:41:10 PM"); if(CountSteppers32552>0) ddiffs32552 = new Date(dnows32552-dthens32552); else ddiffs32552 = new Date(dthens32552-dnows32552); gsecss32552 = Math.floor(ddiffs32552.valueOf()/1000); CountBacks32552(gsecss32552);