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 (LeadingZeros33612 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33612(secs) { if (secs < 0) { document.getElementById("cntdwns33612").innerHTML = FinishMessages33612; return; } DisplayStrs33612 = DisplayFormats33612.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33612 = DisplayStrs33612.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33612 = DisplayStrs33612.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33612 = DisplayStrs33612.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33612").innerHTML = DisplayStrs33612; if (CountActives33612) //alert(SetTimeOutPeriods33612); setTimeout("CountBacks33612(" + (secs+CountSteppers33612) + ")", SetTimeOutPeriods33612); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33612)=="undefined") BackColors33612 = ""; if (typeof(ForeColors33612)=="undefined") ForeColors33612= "white"; if (typeof(TargetDates33612)=="undefined") TargetDates33612 = "03/15/2026 10:00:00 PM"; if (typeof(DisplayFormats33612)=="undefined") DisplayFormats33612 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33612)=="undefined") CountActives33612 = true; if (typeof(FinishMessages33612)=="undefined") FinishMessages33612 = ""; if (typeof(CountSteppers33612)!="number") CountSteppers33612 = -1; if (typeof(LeadingZeros33612)=="undefined") LeadingZeros33612 = true; CountSteppers33612 = Math.ceil(CountSteppers33612); if (CountSteppers33612 == 0) CountActives33612 = false; var SetTimeOutPeriods33612 = (Math.abs(CountSteppers33612)-1)*1000 + 990; puti(BackColors33612, ForeColors33612); var dthens33612 = new Date(TargetDates33612); var dnows33612 = new Date("04/16/2026 10:55:00 PM"); if(CountSteppers33612>0) ddiffs33612 = new Date(dnows33612-dthens33612); else ddiffs33612 = new Date(dthens33612-dnows33612); gsecss33612 = Math.floor(ddiffs33612.valueOf()/1000); CountBacks33612(gsecss33612);