I propose this thread be moved to scripts. It can then be further discussed and if the original author has a desire to meat the UDF posting guidlines, can be reposted here as separate UDFs.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.