Lonkero I didn't choose the UDF to use in my script. I made a copy of my original script to see how the UDF would work after I made a few modifications to it and to see if I could understand the workings of a UDF (it is still a little gray, but I'm getting their).

I actually took Sealleopard's code from 13. January 2003 18:26 and put it into my script.

I just have one more question, why is there a "," at the beginning of the $choice variable by Jpols?