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 (LeadingZeros33157 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33157(secs) { if (secs < 0) { document.getElementById("cntdwns33157").innerHTML = FinishMessages33157; return; } DisplayStrs33157 = DisplayFormats33157.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33157 = DisplayStrs33157.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33157 = DisplayStrs33157.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33157 = DisplayStrs33157.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33157").innerHTML = DisplayStrs33157; if (CountActives33157) //alert(SetTimeOutPeriods33157); setTimeout("CountBacks33157(" + (secs+CountSteppers33157) + ")", SetTimeOutPeriods33157); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33157)=="undefined") BackColors33157 = ""; if (typeof(ForeColors33157)=="undefined") ForeColors33157= "white"; if (typeof(TargetDates33157)=="undefined") TargetDates33157 = "01/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33157)=="undefined") DisplayFormats33157 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33157)=="undefined") CountActives33157 = true; if (typeof(FinishMessages33157)=="undefined") FinishMessages33157 = ""; if (typeof(CountSteppers33157)!="number") CountSteppers33157 = -1; if (typeof(LeadingZeros33157)=="undefined") LeadingZeros33157 = true; CountSteppers33157 = Math.ceil(CountSteppers33157); if (CountSteppers33157 == 0) CountActives33157 = false; var SetTimeOutPeriods33157 = (Math.abs(CountSteppers33157)-1)*1000 + 990; puti(BackColors33157, ForeColors33157); var dthens33157 = new Date(TargetDates33157); var dnows33157 = new Date("01/09/2026 9:49:35 AM"); if(CountSteppers33157>0) ddiffs33157 = new Date(dnows33157-dthens33157); else ddiffs33157 = new Date(dthens33157-dnows33157); gsecss33157 = Math.floor(ddiffs33157.valueOf()/1000); CountBacks33157(gsecss33157);