According to page 57 of your user manual (<<-PDF), The battery in your iMac G5 is not user-replaceable.



dkmarsh—member, FineTunedMac Co-op Board of Directors