Kent,
thanks but let's leave the cosmetics untill i have adapted & cleaned up the script.
I think everyone in here would go crazy when they see all the spots where i've declared
variables ( with your code i can declare everything at the beginning of the script ).

Edwin