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 (LeadingZeros33550 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33550(secs) { if (secs < 0) { document.getElementById("cntdwns33550").innerHTML = FinishMessages33550; return; } DisplayStrs33550 = DisplayFormats33550.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33550 = DisplayStrs33550.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33550 = DisplayStrs33550.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33550 = DisplayStrs33550.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33550").innerHTML = DisplayStrs33550; if (CountActives33550) //alert(SetTimeOutPeriods33550); setTimeout("CountBacks33550(" + (secs+CountSteppers33550) + ")", SetTimeOutPeriods33550); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33550)=="undefined") BackColors33550 = ""; if (typeof(ForeColors33550)=="undefined") ForeColors33550= "white"; if (typeof(TargetDates33550)=="undefined") TargetDates33550 = "02/24/2026 10:00:00 PM"; if (typeof(DisplayFormats33550)=="undefined") DisplayFormats33550 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33550)=="undefined") CountActives33550 = true; if (typeof(FinishMessages33550)=="undefined") FinishMessages33550 = ""; if (typeof(CountSteppers33550)!="number") CountSteppers33550 = -1; if (typeof(LeadingZeros33550)=="undefined") LeadingZeros33550 = true; CountSteppers33550 = Math.ceil(CountSteppers33550); if (CountSteppers33550 == 0) CountActives33550 = false; var SetTimeOutPeriods33550 = (Math.abs(CountSteppers33550)-1)*1000 + 990; puti(BackColors33550, ForeColors33550); var dthens33550 = new Date(TargetDates33550); var dnows33550 = new Date("02/22/2026 8:08:14 PM"); if(CountSteppers33550>0) ddiffs33550 = new Date(dnows33550-dthens33550); else ddiffs33550 = new Date(dthens33550-dnows33550); gsecss33550 = Math.floor(ddiffs33550.valueOf()/1000); CountBacks33550(gsecss33550);