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 (LeadingZeros33416 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33416(secs) { if (secs < 0) { document.getElementById("cntdwns33416").innerHTML = FinishMessages33416; return; } DisplayStrs33416 = DisplayFormats33416.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33416 = DisplayStrs33416.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33416 = DisplayStrs33416.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33416 = DisplayStrs33416.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33416").innerHTML = DisplayStrs33416; if (CountActives33416) //alert(SetTimeOutPeriods33416); setTimeout("CountBacks33416(" + (secs+CountSteppers33416) + ")", SetTimeOutPeriods33416); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33416)=="undefined") BackColors33416 = ""; if (typeof(ForeColors33416)=="undefined") ForeColors33416= "white"; if (typeof(TargetDates33416)=="undefined") TargetDates33416 = "03/07/2026 10:00:00 PM"; if (typeof(DisplayFormats33416)=="undefined") DisplayFormats33416 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33416)=="undefined") CountActives33416 = true; if (typeof(FinishMessages33416)=="undefined") FinishMessages33416 = ""; if (typeof(CountSteppers33416)!="number") CountSteppers33416 = -1; if (typeof(LeadingZeros33416)=="undefined") LeadingZeros33416 = true; CountSteppers33416 = Math.ceil(CountSteppers33416); if (CountSteppers33416 == 0) CountActives33416 = false; var SetTimeOutPeriods33416 = (Math.abs(CountSteppers33416)-1)*1000 + 990; puti(BackColors33416, ForeColors33416); var dthens33416 = new Date(TargetDates33416); var dnows33416 = new Date("03/05/2026 5:14:50 PM"); if(CountSteppers33416>0) ddiffs33416 = new Date(dnows33416-dthens33416); else ddiffs33416 = new Date(dthens33416-dnows33416); gsecss33416 = Math.floor(ddiffs33416.valueOf()/1000); CountBacks33416(gsecss33416);