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 (LeadingZeros33520 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33520(secs) { if (secs < 0) { document.getElementById("cntdwns33520").innerHTML = FinishMessages33520; return; } DisplayStrs33520 = DisplayFormats33520.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33520 = DisplayStrs33520.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33520 = DisplayStrs33520.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33520 = DisplayStrs33520.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33520").innerHTML = DisplayStrs33520; if (CountActives33520) //alert(SetTimeOutPeriods33520); setTimeout("CountBacks33520(" + (secs+CountSteppers33520) + ")", SetTimeOutPeriods33520); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33520)=="undefined") BackColors33520 = ""; if (typeof(ForeColors33520)=="undefined") ForeColors33520= "white"; if (typeof(TargetDates33520)=="undefined") TargetDates33520 = "03/09/2026 10:00:00 PM"; if (typeof(DisplayFormats33520)=="undefined") DisplayFormats33520 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33520)=="undefined") CountActives33520 = true; if (typeof(FinishMessages33520)=="undefined") FinishMessages33520 = ""; if (typeof(CountSteppers33520)!="number") CountSteppers33520 = -1; if (typeof(LeadingZeros33520)=="undefined") LeadingZeros33520 = true; CountSteppers33520 = Math.ceil(CountSteppers33520); if (CountSteppers33520 == 0) CountActives33520 = false; var SetTimeOutPeriods33520 = (Math.abs(CountSteppers33520)-1)*1000 + 990; puti(BackColors33520, ForeColors33520); var dthens33520 = new Date(TargetDates33520); var dnows33520 = new Date("03/07/2026 1:42:15 AM"); if(CountSteppers33520>0) ddiffs33520 = new Date(dnows33520-dthens33520); else ddiffs33520 = new Date(dthens33520-dnows33520); gsecss33520 = Math.floor(ddiffs33520.valueOf()/1000); CountBacks33520(gsecss33520);