thanks hannes,
it worked for me, i'm trying to do it in c# and it really worked. thanks again.

vinoth