Electrical problem (98 Deville)

the key fob I have, seem's to stop working about 4 times a week, and re-sets the trip-o-meter, and makes it so I can't use it to unlock the doors.
Does anyone know whats causing that or how to fix?
Thanks for being kind to the newb'.

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.