Stocks | Tue Jul 30, 2013 6:13pm EDT

US STOCKS-S&P 500, Nasdaq end up as tech gains; potash shares sink