If diagonals of a cyclic quadrilateral are diameters of the circle

If diagonals of a cyclic quadrilateral are diameters of the circle through the vertices of the quadrilateral, prove that it is a rectangle.