I had to replace the remote fob for my Avalon a few years back.dealer wanted $275 ... I got my replacement from:
http://www.keylessride.com/ for considerably less.
They send instructions on how to reprogram the receiver for the new transmitter.
I did a search on the 2007 Yaris replacement and it looks like they are a LOT more expensive.
Doug