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 (LeadingZeros33508 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33508(secs) { if (secs < 0) { document.getElementById("cntdwns33508").innerHTML = FinishMessages33508; return; } DisplayStrs33508 = DisplayFormats33508.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33508 = DisplayStrs33508.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33508 = DisplayStrs33508.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33508 = DisplayStrs33508.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33508").innerHTML = DisplayStrs33508; if (CountActives33508) //alert(SetTimeOutPeriods33508); setTimeout("CountBacks33508(" + (secs+CountSteppers33508) + ")", SetTimeOutPeriods33508); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33508)=="undefined") BackColors33508 = ""; if (typeof(ForeColors33508)=="undefined") ForeColors33508= "white"; if (typeof(TargetDates33508)=="undefined") TargetDates33508 = "03/08/2026 10:00:00 PM"; if (typeof(DisplayFormats33508)=="undefined") DisplayFormats33508 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33508)=="undefined") CountActives33508 = true; if (typeof(FinishMessages33508)=="undefined") FinishMessages33508 = ""; if (typeof(CountSteppers33508)!="number") CountSteppers33508 = -1; if (typeof(LeadingZeros33508)=="undefined") LeadingZeros33508 = true; CountSteppers33508 = Math.ceil(CountSteppers33508); if (CountSteppers33508 == 0) CountActives33508 = false; var SetTimeOutPeriods33508 = (Math.abs(CountSteppers33508)-1)*1000 + 990; puti(BackColors33508, ForeColors33508); var dthens33508 = new Date(TargetDates33508); var dnows33508 = new Date("03/05/2026 2:44:31 AM"); if(CountSteppers33508>0) ddiffs33508 = new Date(dnows33508-dthens33508); else ddiffs33508 = new Date(dthens33508-dnows33508); gsecss33508 = Math.floor(ddiffs33508.valueOf()/1000); CountBacks33508(gsecss33508);