OMG, there is ton of misinformation (mostly incomplete) here.
First of all the "standard FOB / Key " contains two electronic parts:
(1) transmitter to operate the door locks and panic alarm;
(2) a RFID chip which the car's computer (ECU) has been programed to accept in order to START the car.
You can take ONE FOB and program (teach) multiple CARS (ECU computer unit) to accept it for STARTing and DRIVING the car; and you can also program the CAR's ECU computer to use the transmitter's code to unlock the DOORS and panic alarm.
You do not PROGRAM the FOBS, You re-program the CAR's computer - one catch, you can only add more FOB's to the computer for a total of 6 FOB entries.
You can find the information to program additional FOB codes into your CAR's computer on the internet.
Don't be surprised if the dealership can't make a replacement FOB work, after all they sell more COMPUTERS for BIG money that way - duh!
A toyota dealership in salt lake city, UT told me I need to replace the antiilock bracking system, when they could not get a TPS (tire pressure sensor) work; funny my small repair shop simply replaced the TPS sensor in the wheel and reset the TPS system. The TPS sensors have an internal battery, which last 4-8 years depending on the weather extremes where you drive the car.