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 (LeadingZeros33622 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33622(secs) { if (secs < 0) { document.getElementById("cntdwns33622").innerHTML = FinishMessages33622; return; } DisplayStrs33622 = DisplayFormats33622.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33622 = DisplayStrs33622.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33622 = DisplayStrs33622.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33622 = DisplayStrs33622.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33622").innerHTML = DisplayStrs33622; if (CountActives33622) //alert(SetTimeOutPeriods33622); setTimeout("CountBacks33622(" + (secs+CountSteppers33622) + ")", SetTimeOutPeriods33622); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33622)=="undefined") BackColors33622 = ""; if (typeof(ForeColors33622)=="undefined") ForeColors33622= "white"; if (typeof(TargetDates33622)=="undefined") TargetDates33622 = "03/10/2026 10:00:00 PM"; if (typeof(DisplayFormats33622)=="undefined") DisplayFormats33622 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33622)=="undefined") CountActives33622 = true; if (typeof(FinishMessages33622)=="undefined") FinishMessages33622 = ""; if (typeof(CountSteppers33622)!="number") CountSteppers33622 = -1; if (typeof(LeadingZeros33622)=="undefined") LeadingZeros33622 = true; CountSteppers33622 = Math.ceil(CountSteppers33622); if (CountSteppers33622 == 0) CountActives33622 = false; var SetTimeOutPeriods33622 = (Math.abs(CountSteppers33622)-1)*1000 + 990; puti(BackColors33622, ForeColors33622); var dthens33622 = new Date(TargetDates33622); var dnows33622 = new Date("03/08/2026 8:16:21 AM"); if(CountSteppers33622>0) ddiffs33622 = new Date(dnows33622-dthens33622); else ddiffs33622 = new Date(dthens33622-dnows33622); gsecss33622 = Math.floor(ddiffs33622.valueOf()/1000); CountBacks33622(gsecss33622);