I'm wanting to put an on board charger on my boat, but I'm very limited as to where I can put it. Is it okay to mount a waterproof one where it will be in the elements and not covered in a compartment?

Thanks.