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 (LeadingZeros33385 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33385(secs) { if (secs < 0) { document.getElementById("cntdwns33385").innerHTML = FinishMessages33385; return; } DisplayStrs33385 = DisplayFormats33385.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33385 = DisplayStrs33385.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33385 = DisplayStrs33385.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33385 = DisplayStrs33385.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33385").innerHTML = DisplayStrs33385; if (CountActives33385) //alert(SetTimeOutPeriods33385); setTimeout("CountBacks33385(" + (secs+CountSteppers33385) + ")", SetTimeOutPeriods33385); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33385)=="undefined") BackColors33385 = ""; if (typeof(ForeColors33385)=="undefined") ForeColors33385= "white"; if (typeof(TargetDates33385)=="undefined") TargetDates33385 = "03/03/2026 10:00:00 PM"; if (typeof(DisplayFormats33385)=="undefined") DisplayFormats33385 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33385)=="undefined") CountActives33385 = true; if (typeof(FinishMessages33385)=="undefined") FinishMessages33385 = ""; if (typeof(CountSteppers33385)!="number") CountSteppers33385 = -1; if (typeof(LeadingZeros33385)=="undefined") LeadingZeros33385 = true; CountSteppers33385 = Math.ceil(CountSteppers33385); if (CountSteppers33385 == 0) CountActives33385 = false; var SetTimeOutPeriods33385 = (Math.abs(CountSteppers33385)-1)*1000 + 990; puti(BackColors33385, ForeColors33385); var dthens33385 = new Date(TargetDates33385); var dnows33385 = new Date("03/01/2026 5:42:56 PM"); if(CountSteppers33385>0) ddiffs33385 = new Date(dnows33385-dthens33385); else ddiffs33385 = new Date(dthens33385-dnows33385); gsecss33385 = Math.floor(ddiffs33385.valueOf()/1000); CountBacks33385(gsecss33385);