Keep in mind that if the fob doesn't work (won't unlock the trunks or unlock the doors), then it will have to be reprogramed to the car. That cannot be done without the original program code that comes with the fob (on a little paper tag attached to the fob:
This reprograming also has to be done at the dealer. It's a racket.