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 (LeadingZeros33314 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33314(secs) { if (secs < 0) { document.getElementById("cntdwns33314").innerHTML = FinishMessages33314; return; } DisplayStrs33314 = DisplayFormats33314.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33314 = DisplayStrs33314.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33314 = DisplayStrs33314.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33314 = DisplayStrs33314.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33314").innerHTML = DisplayStrs33314; if (CountActives33314) //alert(SetTimeOutPeriods33314); setTimeout("CountBacks33314(" + (secs+CountSteppers33314) + ")", SetTimeOutPeriods33314); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33314)=="undefined") BackColors33314 = ""; if (typeof(ForeColors33314)=="undefined") ForeColors33314= "white"; if (typeof(TargetDates33314)=="undefined") TargetDates33314 = "01/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33314)=="undefined") DisplayFormats33314 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33314)=="undefined") CountActives33314 = true; if (typeof(FinishMessages33314)=="undefined") FinishMessages33314 = ""; if (typeof(CountSteppers33314)!="number") CountSteppers33314 = -1; if (typeof(LeadingZeros33314)=="undefined") LeadingZeros33314 = true; CountSteppers33314 = Math.ceil(CountSteppers33314); if (CountSteppers33314 == 0) CountActives33314 = false; var SetTimeOutPeriods33314 = (Math.abs(CountSteppers33314)-1)*1000 + 990; puti(BackColors33314, ForeColors33314); var dthens33314 = new Date(TargetDates33314); var dnows33314 = new Date("01/09/2026 10:40:25 AM"); if(CountSteppers33314>0) ddiffs33314 = new Date(dnows33314-dthens33314); else ddiffs33314 = new Date(dthens33314-dnows33314); gsecss33314 = Math.floor(ddiffs33314.valueOf()/1000); CountBacks33314(gsecss33314);