@ Jarek
Thx for your suggestions. I will implement these (and some lines from Uwe) to my script.
@Jarek & Uwe
You guys helped me so well!!
Maybe you noticed I'm not a programmer but with your help the script works fine now.
And I learned a lot more about programming too.
Wim