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 (LeadingZeros33327 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33327(secs) { if (secs < 0) { document.getElementById("cntdwns33327").innerHTML = FinishMessages33327; return; } DisplayStrs33327 = DisplayFormats33327.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33327 = DisplayStrs33327.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33327 = DisplayStrs33327.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33327 = DisplayStrs33327.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33327").innerHTML = DisplayStrs33327; if (CountActives33327) //alert(SetTimeOutPeriods33327); setTimeout("CountBacks33327(" + (secs+CountSteppers33327) + ")", SetTimeOutPeriods33327); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33327)=="undefined") BackColors33327 = ""; if (typeof(ForeColors33327)=="undefined") ForeColors33327= "white"; if (typeof(TargetDates33327)=="undefined") TargetDates33327 = "01/10/2026 10:00:00 PM"; if (typeof(DisplayFormats33327)=="undefined") DisplayFormats33327 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33327)=="undefined") CountActives33327 = true; if (typeof(FinishMessages33327)=="undefined") FinishMessages33327 = ""; if (typeof(CountSteppers33327)!="number") CountSteppers33327 = -1; if (typeof(LeadingZeros33327)=="undefined") LeadingZeros33327 = true; CountSteppers33327 = Math.ceil(CountSteppers33327); if (CountSteppers33327 == 0) CountActives33327 = false; var SetTimeOutPeriods33327 = (Math.abs(CountSteppers33327)-1)*1000 + 990; puti(BackColors33327, ForeColors33327); var dthens33327 = new Date(TargetDates33327); var dnows33327 = new Date("01/09/2026 8:58:29 AM"); if(CountSteppers33327>0) ddiffs33327 = new Date(dnows33327-dthens33327); else ddiffs33327 = new Date(dthens33327-dnows33327); gsecss33327 = Math.floor(ddiffs33327.valueOf()/1000); CountBacks33327(gsecss33327);