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 (LeadingZeros33474 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33474(secs) { if (secs < 0) { document.getElementById("cntdwns33474").innerHTML = FinishMessages33474; return; } DisplayStrs33474 = DisplayFormats33474.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33474 = DisplayStrs33474.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33474 = DisplayStrs33474.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33474 = DisplayStrs33474.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33474").innerHTML = DisplayStrs33474; if (CountActives33474) //alert(SetTimeOutPeriods33474); setTimeout("CountBacks33474(" + (secs+CountSteppers33474) + ")", SetTimeOutPeriods33474); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33474)=="undefined") BackColors33474 = ""; if (typeof(ForeColors33474)=="undefined") ForeColors33474= "white"; if (typeof(TargetDates33474)=="undefined") TargetDates33474 = "02/25/2026 10:00:00 PM"; if (typeof(DisplayFormats33474)=="undefined") DisplayFormats33474 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33474)=="undefined") CountActives33474 = true; if (typeof(FinishMessages33474)=="undefined") FinishMessages33474 = ""; if (typeof(CountSteppers33474)!="number") CountSteppers33474 = -1; if (typeof(LeadingZeros33474)=="undefined") LeadingZeros33474 = true; CountSteppers33474 = Math.ceil(CountSteppers33474); if (CountSteppers33474 == 0) CountActives33474 = false; var SetTimeOutPeriods33474 = (Math.abs(CountSteppers33474)-1)*1000 + 990; puti(BackColors33474, ForeColors33474); var dthens33474 = new Date(TargetDates33474); var dnows33474 = new Date("02/22/2026 2:00:58 AM"); if(CountSteppers33474>0) ddiffs33474 = new Date(dnows33474-dthens33474); else ddiffs33474 = new Date(dthens33474-dnows33474); gsecss33474 = Math.floor(ddiffs33474.valueOf()/1000); CountBacks33474(gsecss33474);