I have a 40 gallon electric water heater that is about 4 years old. It is rated for ten year life. Recently it has begun shutting off during the day. I can push the reset button that is in the door by the top eliment and it will work for about 12 hours and shut off again. We have noticed that the water temp is getting much hotter than it used to. I turned the setting down but it still gets just aas hot.I thught it was an electrical short but i had an electrician check it out and he said no problem there. He thought it may be the thermostat. If the problem is the thermostate not working properly then how does it determine that it needs to shut off? If is is the thermostat are they difficult to replace or should I just replace the water heater? I know this is off topic but there are knowledgeable people here about most subjects. thanks for any help, Jerry