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 (LeadingZeros32573 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32573(secs) { if (secs < 0) { document.getElementById("cntdwns32573").innerHTML = FinishMessages32573; return; } DisplayStrs32573 = DisplayFormats32573.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32573 = DisplayStrs32573.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32573 = DisplayStrs32573.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32573 = DisplayStrs32573.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32573").innerHTML = DisplayStrs32573; if (CountActives32573) //alert(SetTimeOutPeriods32573); setTimeout("CountBacks32573(" + (secs+CountSteppers32573) + ")", SetTimeOutPeriods32573); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32573)=="undefined") BackColors32573 = ""; if (typeof(ForeColors32573)=="undefined") ForeColors32573= "white"; if (typeof(TargetDates32573)=="undefined") TargetDates32573 = "08/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32573)=="undefined") DisplayFormats32573 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32573)=="undefined") CountActives32573 = true; if (typeof(FinishMessages32573)=="undefined") FinishMessages32573 = ""; if (typeof(CountSteppers32573)!="number") CountSteppers32573 = -1; if (typeof(LeadingZeros32573)=="undefined") LeadingZeros32573 = true; CountSteppers32573 = Math.ceil(CountSteppers32573); if (CountSteppers32573 == 0) CountActives32573 = false; var SetTimeOutPeriods32573 = (Math.abs(CountSteppers32573)-1)*1000 + 990; puti(BackColors32573, ForeColors32573); var dthens32573 = new Date(TargetDates32573); var dnows32573 = new Date("08/02/2025 10:09:32 AM"); if(CountSteppers32573>0) ddiffs32573 = new Date(dnows32573-dthens32573); else ddiffs32573 = new Date(dthens32573-dnows32573); gsecss32573 = Math.floor(ddiffs32573.valueOf()/1000); CountBacks32573(gsecss32573);