Laser induced photodissociation of H+2 and D+2 ions