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 (LeadingZeros33509 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33509(secs) { if (secs < 0) { document.getElementById("cntdwns33509").innerHTML = FinishMessages33509; return; } DisplayStrs33509 = DisplayFormats33509.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33509 = DisplayStrs33509.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33509 = DisplayStrs33509.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33509 = DisplayStrs33509.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33509").innerHTML = DisplayStrs33509; if (CountActives33509) //alert(SetTimeOutPeriods33509); setTimeout("CountBacks33509(" + (secs+CountSteppers33509) + ")", SetTimeOutPeriods33509); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33509)=="undefined") BackColors33509 = ""; if (typeof(ForeColors33509)=="undefined") ForeColors33509= "white"; if (typeof(TargetDates33509)=="undefined") TargetDates33509 = "03/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33509)=="undefined") DisplayFormats33509 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33509)=="undefined") CountActives33509 = true; if (typeof(FinishMessages33509)=="undefined") FinishMessages33509 = ""; if (typeof(CountSteppers33509)!="number") CountSteppers33509 = -1; if (typeof(LeadingZeros33509)=="undefined") LeadingZeros33509 = true; CountSteppers33509 = Math.ceil(CountSteppers33509); if (CountSteppers33509 == 0) CountActives33509 = false; var SetTimeOutPeriods33509 = (Math.abs(CountSteppers33509)-1)*1000 + 990; puti(BackColors33509, ForeColors33509); var dthens33509 = new Date(TargetDates33509); var dnows33509 = new Date("03/01/2026 11:12:12 AM"); if(CountSteppers33509>0) ddiffs33509 = new Date(dnows33509-dthens33509); else ddiffs33509 = new Date(dthens33509-dnows33509); gsecss33509 = Math.floor(ddiffs33509.valueOf()/1000); CountBacks33509(gsecss33509);