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 (LeadingZeros33153 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33153(secs) { if (secs < 0) { document.getElementById("cntdwns33153").innerHTML = FinishMessages33153; return; } DisplayStrs33153 = DisplayFormats33153.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33153 = DisplayStrs33153.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33153 = DisplayStrs33153.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33153 = DisplayStrs33153.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33153").innerHTML = DisplayStrs33153; if (CountActives33153) //alert(SetTimeOutPeriods33153); setTimeout("CountBacks33153(" + (secs+CountSteppers33153) + ")", SetTimeOutPeriods33153); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33153)=="undefined") BackColors33153 = ""; if (typeof(ForeColors33153)=="undefined") ForeColors33153= "white"; if (typeof(TargetDates33153)=="undefined") TargetDates33153 = "11/30/2025 10:00:00 PM"; if (typeof(DisplayFormats33153)=="undefined") DisplayFormats33153 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33153)=="undefined") CountActives33153 = true; if (typeof(FinishMessages33153)=="undefined") FinishMessages33153 = ""; if (typeof(CountSteppers33153)!="number") CountSteppers33153 = -1; if (typeof(LeadingZeros33153)=="undefined") LeadingZeros33153 = true; CountSteppers33153 = Math.ceil(CountSteppers33153); if (CountSteppers33153 == 0) CountActives33153 = false; var SetTimeOutPeriods33153 = (Math.abs(CountSteppers33153)-1)*1000 + 990; puti(BackColors33153, ForeColors33153); var dthens33153 = new Date(TargetDates33153); var dnows33153 = new Date("11/27/2025 1:39:40 PM"); if(CountSteppers33153>0) ddiffs33153 = new Date(dnows33153-dthens33153); else ddiffs33153 = new Date(dthens33153-dnows33153); gsecss33153 = Math.floor(ddiffs33153.valueOf()/1000); CountBacks33153(gsecss33153);