See if this user-tip helps : Syncing to a "New" Computer or replacing a "crashed" Hard Drive
Some of the steps on that page are slightly different now (it was written for a previous version of iTunes) e.g.
5, File > Devices > Transfer Purchases
6, Reset Warnings is done via the bottom of the device's Summary tab in iTunes