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 (LeadingZeros33511 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33511(secs) { if (secs < 0) { document.getElementById("cntdwns33511").innerHTML = FinishMessages33511; return; } DisplayStrs33511 = DisplayFormats33511.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33511 = DisplayStrs33511.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33511 = DisplayStrs33511.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33511 = DisplayStrs33511.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33511").innerHTML = DisplayStrs33511; if (CountActives33511) //alert(SetTimeOutPeriods33511); setTimeout("CountBacks33511(" + (secs+CountSteppers33511) + ")", SetTimeOutPeriods33511); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33511)=="undefined") BackColors33511 = ""; if (typeof(ForeColors33511)=="undefined") ForeColors33511= "white"; if (typeof(TargetDates33511)=="undefined") TargetDates33511 = "03/09/2026 10:00:00 PM"; if (typeof(DisplayFormats33511)=="undefined") DisplayFormats33511 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33511)=="undefined") CountActives33511 = true; if (typeof(FinishMessages33511)=="undefined") FinishMessages33511 = ""; if (typeof(CountSteppers33511)!="number") CountSteppers33511 = -1; if (typeof(LeadingZeros33511)=="undefined") LeadingZeros33511 = true; CountSteppers33511 = Math.ceil(CountSteppers33511); if (CountSteppers33511 == 0) CountActives33511 = false; var SetTimeOutPeriods33511 = (Math.abs(CountSteppers33511)-1)*1000 + 990; puti(BackColors33511, ForeColors33511); var dthens33511 = new Date(TargetDates33511); var dnows33511 = new Date("03/07/2026 4:34:52 AM"); if(CountSteppers33511>0) ddiffs33511 = new Date(dnows33511-dthens33511); else ddiffs33511 = new Date(dthens33511-dnows33511); gsecss33511 = Math.floor(ddiffs33511.valueOf()/1000); CountBacks33511(gsecss33511);