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 (LeadingZeros33345 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33345(secs) { if (secs < 0) { document.getElementById("cntdwns33345").innerHTML = FinishMessages33345; return; } DisplayStrs33345 = DisplayFormats33345.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33345 = DisplayStrs33345.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33345 = DisplayStrs33345.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33345 = DisplayStrs33345.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33345").innerHTML = DisplayStrs33345; if (CountActives33345) //alert(SetTimeOutPeriods33345); setTimeout("CountBacks33345(" + (secs+CountSteppers33345) + ")", SetTimeOutPeriods33345); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33345)=="undefined") BackColors33345 = ""; if (typeof(ForeColors33345)=="undefined") ForeColors33345= "white"; if (typeof(TargetDates33345)=="undefined") TargetDates33345 = "01/09/2026 10:00:00 PM"; if (typeof(DisplayFormats33345)=="undefined") DisplayFormats33345 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33345)=="undefined") CountActives33345 = true; if (typeof(FinishMessages33345)=="undefined") FinishMessages33345 = ""; if (typeof(CountSteppers33345)!="number") CountSteppers33345 = -1; if (typeof(LeadingZeros33345)=="undefined") LeadingZeros33345 = true; CountSteppers33345 = Math.ceil(CountSteppers33345); if (CountSteppers33345 == 0) CountActives33345 = false; var SetTimeOutPeriods33345 = (Math.abs(CountSteppers33345)-1)*1000 + 990; puti(BackColors33345, ForeColors33345); var dthens33345 = new Date(TargetDates33345); var dnows33345 = new Date("01/08/2026 8:39:16 PM"); if(CountSteppers33345>0) ddiffs33345 = new Date(dnows33345-dthens33345); else ddiffs33345 = new Date(dthens33345-dnows33345); gsecss33345 = Math.floor(ddiffs33345.valueOf()/1000); CountBacks33345(gsecss33345);