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 (LeadingZeros33154 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33154(secs) { if (secs < 0) { document.getElementById("cntdwns33154").innerHTML = FinishMessages33154; return; } DisplayStrs33154 = DisplayFormats33154.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33154 = DisplayStrs33154.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33154 = DisplayStrs33154.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33154 = DisplayStrs33154.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33154").innerHTML = DisplayStrs33154; if (CountActives33154) //alert(SetTimeOutPeriods33154); setTimeout("CountBacks33154(" + (secs+CountSteppers33154) + ")", SetTimeOutPeriods33154); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33154)=="undefined") BackColors33154 = ""; if (typeof(ForeColors33154)=="undefined") ForeColors33154= "white"; if (typeof(TargetDates33154)=="undefined") TargetDates33154 = "02/28/2026 10:00:00 PM"; if (typeof(DisplayFormats33154)=="undefined") DisplayFormats33154 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33154)=="undefined") CountActives33154 = true; if (typeof(FinishMessages33154)=="undefined") FinishMessages33154 = ""; if (typeof(CountSteppers33154)!="number") CountSteppers33154 = -1; if (typeof(LeadingZeros33154)=="undefined") LeadingZeros33154 = true; CountSteppers33154 = Math.ceil(CountSteppers33154); if (CountSteppers33154 == 0) CountActives33154 = false; var SetTimeOutPeriods33154 = (Math.abs(CountSteppers33154)-1)*1000 + 990; puti(BackColors33154, ForeColors33154); var dthens33154 = new Date(TargetDates33154); var dnows33154 = new Date("02/26/2026 2:20:40 AM"); if(CountSteppers33154>0) ddiffs33154 = new Date(dnows33154-dthens33154); else ddiffs33154 = new Date(dthens33154-dnows33154); gsecss33154 = Math.floor(ddiffs33154.valueOf()/1000); CountBacks33154(gsecss33154);