I think your best bet is to unhook all the wires from one battery, mark them so you know how to put em back, charge that battery, then unhook the other and charge it. Either that or take it to a dealer and have him tell you how to hook it up.
If you aren't sure, don't mess with it. It could get expensive