Mean values of certain zeta-functions on the critical line