All three indexes ended Friday on an upbeat note and posted gains for the week.