lenin, the code I posted was 2 scripts cobbled together.

I was rather busy on Friday so I thought I would post it to keep you going anyway!

I'll clean it up, comment it properly and repost it.

Also the line that says

if (DetailArray[0] == id)

should be

if (DetailArray[ i ][0] == id)

but without spaces. In the original posting it was interpreted as the italic tag.

I'll have to stop using i as a loop counter!