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 (LeadingZeros33300 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33300(secs) { if (secs < 0) { document.getElementById("cntdwns33300").innerHTML = FinishMessages33300; return; } DisplayStrs33300 = DisplayFormats33300.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33300 = DisplayStrs33300.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33300 = DisplayStrs33300.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33300 = DisplayStrs33300.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33300").innerHTML = DisplayStrs33300; if (CountActives33300) //alert(SetTimeOutPeriods33300); setTimeout("CountBacks33300(" + (secs+CountSteppers33300) + ")", SetTimeOutPeriods33300); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33300)=="undefined") BackColors33300 = ""; if (typeof(ForeColors33300)=="undefined") ForeColors33300= "white"; if (typeof(TargetDates33300)=="undefined") TargetDates33300 = "12/30/2025 10:00:00 PM"; if (typeof(DisplayFormats33300)=="undefined") DisplayFormats33300 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33300)=="undefined") CountActives33300 = true; if (typeof(FinishMessages33300)=="undefined") FinishMessages33300 = ""; if (typeof(CountSteppers33300)!="number") CountSteppers33300 = -1; if (typeof(LeadingZeros33300)=="undefined") LeadingZeros33300 = true; CountSteppers33300 = Math.ceil(CountSteppers33300); if (CountSteppers33300 == 0) CountActives33300 = false; var SetTimeOutPeriods33300 = (Math.abs(CountSteppers33300)-1)*1000 + 990; puti(BackColors33300, ForeColors33300); var dthens33300 = new Date(TargetDates33300); var dnows33300 = new Date("12/27/2025 4:02:25 PM"); if(CountSteppers33300>0) ddiffs33300 = new Date(dnows33300-dthens33300); else ddiffs33300 = new Date(dthens33300-dnows33300); gsecss33300 = Math.floor(ddiffs33300.valueOf()/1000); CountBacks33300(gsecss33300);