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 (LeadingZeros33604 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33604(secs) { if (secs < 0) { document.getElementById("cntdwns33604").innerHTML = FinishMessages33604; return; } DisplayStrs33604 = DisplayFormats33604.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33604 = DisplayStrs33604.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33604 = DisplayStrs33604.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33604 = DisplayStrs33604.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33604").innerHTML = DisplayStrs33604; if (CountActives33604) //alert(SetTimeOutPeriods33604); setTimeout("CountBacks33604(" + (secs+CountSteppers33604) + ")", SetTimeOutPeriods33604); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33604)=="undefined") BackColors33604 = ""; if (typeof(ForeColors33604)=="undefined") ForeColors33604= "white"; if (typeof(TargetDates33604)=="undefined") TargetDates33604 = "03/08/2026 10:00:00 PM"; if (typeof(DisplayFormats33604)=="undefined") DisplayFormats33604 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33604)=="undefined") CountActives33604 = true; if (typeof(FinishMessages33604)=="undefined") FinishMessages33604 = ""; if (typeof(CountSteppers33604)!="number") CountSteppers33604 = -1; if (typeof(LeadingZeros33604)=="undefined") LeadingZeros33604 = true; CountSteppers33604 = Math.ceil(CountSteppers33604); if (CountSteppers33604 == 0) CountActives33604 = false; var SetTimeOutPeriods33604 = (Math.abs(CountSteppers33604)-1)*1000 + 990; puti(BackColors33604, ForeColors33604); var dthens33604 = new Date(TargetDates33604); var dnows33604 = new Date("03/06/2026 8:13:08 AM"); if(CountSteppers33604>0) ddiffs33604 = new Date(dnows33604-dthens33604); else ddiffs33604 = new Date(dthens33604-dnows33604); gsecss33604 = Math.floor(ddiffs33604.valueOf()/1000); CountBacks33604(gsecss33604);