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 (LeadingZeros33310 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33310(secs) { if (secs < 0) { document.getElementById("cntdwns33310").innerHTML = FinishMessages33310; return; } DisplayStrs33310 = DisplayFormats33310.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33310 = DisplayStrs33310.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33310 = DisplayStrs33310.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33310 = DisplayStrs33310.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33310").innerHTML = DisplayStrs33310; if (CountActives33310) //alert(SetTimeOutPeriods33310); setTimeout("CountBacks33310(" + (secs+CountSteppers33310) + ")", SetTimeOutPeriods33310); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33310)=="undefined") BackColors33310 = ""; if (typeof(ForeColors33310)=="undefined") ForeColors33310= "white"; if (typeof(TargetDates33310)=="undefined") TargetDates33310 = "01/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33310)=="undefined") DisplayFormats33310 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33310)=="undefined") CountActives33310 = true; if (typeof(FinishMessages33310)=="undefined") FinishMessages33310 = ""; if (typeof(CountSteppers33310)!="number") CountSteppers33310 = -1; if (typeof(LeadingZeros33310)=="undefined") LeadingZeros33310 = true; CountSteppers33310 = Math.ceil(CountSteppers33310); if (CountSteppers33310 == 0) CountActives33310 = false; var SetTimeOutPeriods33310 = (Math.abs(CountSteppers33310)-1)*1000 + 990; puti(BackColors33310, ForeColors33310); var dthens33310 = new Date(TargetDates33310); var dnows33310 = new Date("01/19/2026 3:30:40 AM"); if(CountSteppers33310>0) ddiffs33310 = new Date(dnows33310-dthens33310); else ddiffs33310 = new Date(dthens33310-dnows33310); gsecss33310 = Math.floor(ddiffs33310.valueOf()/1000); CountBacks33310(gsecss33310);