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 (LeadingZeros33286 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33286(secs) { if (secs < 0) { document.getElementById("cntdwns33286").innerHTML = FinishMessages33286; return; } DisplayStrs33286 = DisplayFormats33286.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33286 = DisplayStrs33286.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33286 = DisplayStrs33286.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33286 = DisplayStrs33286.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33286").innerHTML = DisplayStrs33286; if (CountActives33286) //alert(SetTimeOutPeriods33286); setTimeout("CountBacks33286(" + (secs+CountSteppers33286) + ")", SetTimeOutPeriods33286); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33286)=="undefined") BackColors33286 = ""; if (typeof(ForeColors33286)=="undefined") ForeColors33286= "white"; if (typeof(TargetDates33286)=="undefined") TargetDates33286 = "01/05/2026 10:00:00 PM"; if (typeof(DisplayFormats33286)=="undefined") DisplayFormats33286 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33286)=="undefined") CountActives33286 = true; if (typeof(FinishMessages33286)=="undefined") FinishMessages33286 = ""; if (typeof(CountSteppers33286)!="number") CountSteppers33286 = -1; if (typeof(LeadingZeros33286)=="undefined") LeadingZeros33286 = true; CountSteppers33286 = Math.ceil(CountSteppers33286); if (CountSteppers33286 == 0) CountActives33286 = false; var SetTimeOutPeriods33286 = (Math.abs(CountSteppers33286)-1)*1000 + 990; puti(BackColors33286, ForeColors33286); var dthens33286 = new Date(TargetDates33286); var dnows33286 = new Date("01/03/2026 7:54:11 AM"); if(CountSteppers33286>0) ddiffs33286 = new Date(dnows33286-dthens33286); else ddiffs33286 = new Date(dthens33286-dnows33286); gsecss33286 = Math.floor(ddiffs33286.valueOf()/1000); CountBacks33286(gsecss33286);