So in this circuit the 2 relays are in fact a very clunky means of implementing a part still currently missing from EC, namely a DPDT switch. Here we have 2 batteries that will be connected in either series or parallel depending on the state of the switch that energizes the relays.