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 (LeadingZeros32520 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32520(secs) { if (secs < 0) { document.getElementById("cntdwns32520").innerHTML = FinishMessages32520; return; } DisplayStrs32520 = DisplayFormats32520.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32520 = DisplayStrs32520.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32520 = DisplayStrs32520.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32520 = DisplayStrs32520.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32520").innerHTML = DisplayStrs32520; if (CountActives32520) //alert(SetTimeOutPeriods32520); setTimeout("CountBacks32520(" + (secs+CountSteppers32520) + ")", SetTimeOutPeriods32520); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32520)=="undefined") BackColors32520 = ""; if (typeof(ForeColors32520)=="undefined") ForeColors32520= "white"; if (typeof(TargetDates32520)=="undefined") TargetDates32520 = "07/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32520)=="undefined") DisplayFormats32520 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32520)=="undefined") CountActives32520 = true; if (typeof(FinishMessages32520)=="undefined") FinishMessages32520 = ""; if (typeof(CountSteppers32520)!="number") CountSteppers32520 = -1; if (typeof(LeadingZeros32520)=="undefined") LeadingZeros32520 = true; CountSteppers32520 = Math.ceil(CountSteppers32520); if (CountSteppers32520 == 0) CountActives32520 = false; var SetTimeOutPeriods32520 = (Math.abs(CountSteppers32520)-1)*1000 + 990; puti(BackColors32520, ForeColors32520); var dthens32520 = new Date(TargetDates32520); var dnows32520 = new Date("07/17/2025 9:40:44 AM"); if(CountSteppers32520>0) ddiffs32520 = new Date(dnows32520-dthens32520); else ddiffs32520 = new Date(dthens32520-dnows32520); gsecss32520 = Math.floor(ddiffs32520.valueOf()/1000); CountBacks32520(gsecss32520);