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 (LeadingZeros31772 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31772(secs) { if (secs < 0) { document.getElementById("cntdwns31772").innerHTML = FinishMessages31772; return; } DisplayStrs31772 = DisplayFormats31772.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31772 = DisplayStrs31772.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31772 = DisplayStrs31772.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31772 = DisplayStrs31772.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31772").innerHTML = DisplayStrs31772; if (CountActives31772) //alert(SetTimeOutPeriods31772); setTimeout("CountBacks31772(" + (secs+CountSteppers31772) + ")", SetTimeOutPeriods31772); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31772)=="undefined") BackColors31772 = ""; if (typeof(ForeColors31772)=="undefined") ForeColors31772= "white"; if (typeof(TargetDates31772)=="undefined") TargetDates31772 = "02/23/2025 10:00:00 PM"; if (typeof(DisplayFormats31772)=="undefined") DisplayFormats31772 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31772)=="undefined") CountActives31772 = true; if (typeof(FinishMessages31772)=="undefined") FinishMessages31772 = ""; if (typeof(CountSteppers31772)!="number") CountSteppers31772 = -1; if (typeof(LeadingZeros31772)=="undefined") LeadingZeros31772 = true; CountSteppers31772 = Math.ceil(CountSteppers31772); if (CountSteppers31772 == 0) CountActives31772 = false; var SetTimeOutPeriods31772 = (Math.abs(CountSteppers31772)-1)*1000 + 990; puti(BackColors31772, ForeColors31772); var dthens31772 = new Date(TargetDates31772); var dnows31772 = new Date("02/22/2025 11:23:01 AM"); if(CountSteppers31772>0) ddiffs31772 = new Date(dnows31772-dthens31772); else ddiffs31772 = new Date(dthens31772-dnows31772); gsecss31772 = Math.floor(ddiffs31772.valueOf()/1000); CountBacks31772(gsecss31772);