If you go to the How-To Documents (they are your best friend after the search feature)
link to the security section, you will find how to reprogram it as well as the batteries to use. If you need a new one, you will find them on ebay once in a while, or you can go to subaruparts.com.