Function of valve-regulated battery