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 (LeadingZeros32126 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32126(secs) { if (secs < 0) { document.getElementById("cntdwns32126").innerHTML = FinishMessages32126; return; } DisplayStrs32126 = DisplayFormats32126.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32126 = DisplayStrs32126.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32126 = DisplayStrs32126.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32126 = DisplayStrs32126.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32126").innerHTML = DisplayStrs32126; if (CountActives32126) //alert(SetTimeOutPeriods32126); setTimeout("CountBacks32126(" + (secs+CountSteppers32126) + ")", SetTimeOutPeriods32126); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32126)=="undefined") BackColors32126 = ""; if (typeof(ForeColors32126)=="undefined") ForeColors32126= "white"; if (typeof(TargetDates32126)=="undefined") TargetDates32126 = "04/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32126)=="undefined") DisplayFormats32126 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32126)=="undefined") CountActives32126 = true; if (typeof(FinishMessages32126)=="undefined") FinishMessages32126 = ""; if (typeof(CountSteppers32126)!="number") CountSteppers32126 = -1; if (typeof(LeadingZeros32126)=="undefined") LeadingZeros32126 = true; CountSteppers32126 = Math.ceil(CountSteppers32126); if (CountSteppers32126 == 0) CountActives32126 = false; var SetTimeOutPeriods32126 = (Math.abs(CountSteppers32126)-1)*1000 + 990; puti(BackColors32126, ForeColors32126); var dthens32126 = new Date(TargetDates32126); var dnows32126 = new Date("05/02/2025 9:13:59 AM"); if(CountSteppers32126>0) ddiffs32126 = new Date(dnows32126-dthens32126); else ddiffs32126 = new Date(dthens32126-dnows32126); gsecss32126 = Math.floor(ddiffs32126.valueOf()/1000); CountBacks32126(gsecss32126);