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 (LeadingZeros32145 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32145(secs) { if (secs < 0) { document.getElementById("cntdwns32145").innerHTML = FinishMessages32145; return; } DisplayStrs32145 = DisplayFormats32145.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32145 = DisplayStrs32145.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32145 = DisplayStrs32145.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32145 = DisplayStrs32145.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32145").innerHTML = DisplayStrs32145; if (CountActives32145) //alert(SetTimeOutPeriods32145); setTimeout("CountBacks32145(" + (secs+CountSteppers32145) + ")", SetTimeOutPeriods32145); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32145)=="undefined") BackColors32145 = ""; if (typeof(ForeColors32145)=="undefined") ForeColors32145= "white"; if (typeof(TargetDates32145)=="undefined") TargetDates32145 = "05/26/2025 10:00:00 PM"; if (typeof(DisplayFormats32145)=="undefined") DisplayFormats32145 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32145)=="undefined") CountActives32145 = true; if (typeof(FinishMessages32145)=="undefined") FinishMessages32145 = ""; if (typeof(CountSteppers32145)!="number") CountSteppers32145 = -1; if (typeof(LeadingZeros32145)=="undefined") LeadingZeros32145 = true; CountSteppers32145 = Math.ceil(CountSteppers32145); if (CountSteppers32145 == 0) CountActives32145 = false; var SetTimeOutPeriods32145 = (Math.abs(CountSteppers32145)-1)*1000 + 990; puti(BackColors32145, ForeColors32145); var dthens32145 = new Date(TargetDates32145); var dnows32145 = new Date("05/24/2025 11:44:48 AM"); if(CountSteppers32145>0) ddiffs32145 = new Date(dnows32145-dthens32145); else ddiffs32145 = new Date(dthens32145-dnows32145); gsecss32145 = Math.floor(ddiffs32145.valueOf()/1000); CountBacks32145(gsecss32145);