I'm impressed. Thanks for the input padders.

Of course, I have no idea what the code is doing.

Does this only apply to 10g, as unfortunately we're productionised on 9i ??