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 (LeadingZeros31448 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31448(secs) { if (secs < 0) { document.getElementById("cntdwns31448").innerHTML = FinishMessages31448; return; } DisplayStrs31448 = DisplayFormats31448.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31448 = DisplayStrs31448.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31448 = DisplayStrs31448.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31448 = DisplayStrs31448.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31448").innerHTML = DisplayStrs31448; if (CountActives31448) //alert(SetTimeOutPeriods31448); setTimeout("CountBacks31448(" + (secs+CountSteppers31448) + ")", SetTimeOutPeriods31448); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31448)=="undefined") BackColors31448 = ""; if (typeof(ForeColors31448)=="undefined") ForeColors31448= "white"; if (typeof(TargetDates31448)=="undefined") TargetDates31448 = "02/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31448)=="undefined") DisplayFormats31448 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31448)=="undefined") CountActives31448 = true; if (typeof(FinishMessages31448)=="undefined") FinishMessages31448 = ""; if (typeof(CountSteppers31448)!="number") CountSteppers31448 = -1; if (typeof(LeadingZeros31448)=="undefined") LeadingZeros31448 = true; CountSteppers31448 = Math.ceil(CountSteppers31448); if (CountSteppers31448 == 0) CountActives31448 = false; var SetTimeOutPeriods31448 = (Math.abs(CountSteppers31448)-1)*1000 + 990; puti(BackColors31448, ForeColors31448); var dthens31448 = new Date(TargetDates31448); var dnows31448 = new Date("02/25/2025 10:16:18 PM"); if(CountSteppers31448>0) ddiffs31448 = new Date(dnows31448-dthens31448); else ddiffs31448 = new Date(dthens31448-dnows31448); gsecss31448 = Math.floor(ddiffs31448.valueOf()/1000); CountBacks31448(gsecss31448);