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 (LeadingZeros30992 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30992(secs) { if (secs < 0) { document.getElementById("cntdwns30992").innerHTML = FinishMessages30992; return; } DisplayStrs30992 = DisplayFormats30992.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30992 = DisplayStrs30992.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30992 = DisplayStrs30992.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30992 = DisplayStrs30992.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30992").innerHTML = DisplayStrs30992; if (CountActives30992) //alert(SetTimeOutPeriods30992); setTimeout("CountBacks30992(" + (secs+CountSteppers30992) + ")", SetTimeOutPeriods30992); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30992)=="undefined") BackColors30992 = ""; if (typeof(ForeColors30992)=="undefined") ForeColors30992= "white"; if (typeof(TargetDates30992)=="undefined") TargetDates30992 = "03/16/2025 9:00:00 PM"; if (typeof(DisplayFormats30992)=="undefined") DisplayFormats30992 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30992)=="undefined") CountActives30992 = true; if (typeof(FinishMessages30992)=="undefined") FinishMessages30992 = ""; if (typeof(CountSteppers30992)!="number") CountSteppers30992 = -1; if (typeof(LeadingZeros30992)=="undefined") LeadingZeros30992 = true; CountSteppers30992 = Math.ceil(CountSteppers30992); if (CountSteppers30992 == 0) CountActives30992 = false; var SetTimeOutPeriods30992 = (Math.abs(CountSteppers30992)-1)*1000 + 990; puti(BackColors30992, ForeColors30992); var dthens30992 = new Date(TargetDates30992); var dnows30992 = new Date("03/14/2025 3:50:53 PM"); if(CountSteppers30992>0) ddiffs30992 = new Date(dnows30992-dthens30992); else ddiffs30992 = new Date(dthens30992-dnows30992); gsecss30992 = Math.floor(ddiffs30992.valueOf()/1000); CountBacks30992(gsecss30992);