Moving this to the tools forum to see if it gets hits here first. The code and utilities forum is for sharing code you have developed. Sorry but I am on 4c4 and no knowledge of DOM.
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.
systems provided free by Baan Board
Play the Google game and help Baanboard get better rankings. Do your part. Click here
to find how.