They won't void your warranty because you have 3rd party RAM installed (it's a user replaceable part on all but the recent 21"s. They just won't (obviously) cover any ram related issues (although the genius bar will normally help you troubleshoot).
You don't need to keep the old ram for warranty purposes.