S&P 500, Nasdaq Hit Record Highs After Strong Earnings Week