Most likely, you would have to cycle though the layers, then check each layer for the prefix.
As csuebele said.
And AM code might offer considerably speedier performance than DOM code.
Also what is supposed to happen when more than one Layer meets the criterium?
Thanks for the replies..
.. and for posting the link!
I'll check that out.