Sensex, Nifty Post Weekly Gains As Traders Shift Focus To Earnings