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 (LeadingZeros33412 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33412(secs) { if (secs < 0) { document.getElementById("cntdwns33412").innerHTML = FinishMessages33412; return; } DisplayStrs33412 = DisplayFormats33412.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33412 = DisplayStrs33412.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33412 = DisplayStrs33412.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33412 = DisplayStrs33412.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33412").innerHTML = DisplayStrs33412; if (CountActives33412) //alert(SetTimeOutPeriods33412); setTimeout("CountBacks33412(" + (secs+CountSteppers33412) + ")", SetTimeOutPeriods33412); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33412)=="undefined") BackColors33412 = ""; if (typeof(ForeColors33412)=="undefined") ForeColors33412= "white"; if (typeof(TargetDates33412)=="undefined") TargetDates33412 = "03/06/2026 10:00:00 PM"; if (typeof(DisplayFormats33412)=="undefined") DisplayFormats33412 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33412)=="undefined") CountActives33412 = true; if (typeof(FinishMessages33412)=="undefined") FinishMessages33412 = ""; if (typeof(CountSteppers33412)!="number") CountSteppers33412 = -1; if (typeof(LeadingZeros33412)=="undefined") LeadingZeros33412 = true; CountSteppers33412 = Math.ceil(CountSteppers33412); if (CountSteppers33412 == 0) CountActives33412 = false; var SetTimeOutPeriods33412 = (Math.abs(CountSteppers33412)-1)*1000 + 990; puti(BackColors33412, ForeColors33412); var dthens33412 = new Date(TargetDates33412); var dnows33412 = new Date("03/03/2026 7:10:40 AM"); if(CountSteppers33412>0) ddiffs33412 = new Date(dnows33412-dthens33412); else ddiffs33412 = new Date(dthens33412-dnows33412); gsecss33412 = Math.floor(ddiffs33412.valueOf()/1000); CountBacks33412(gsecss33412);