Thanks RAIN,
Thats what i wanted it to do
The hard part is just beginning, i have to add that to my original code, which is quite large and has many id's
but somehow i'll manage.
That simple script was an example and was used for testing until i got it right.
ShadowDemon