What do you mean when you say 'bombs'? Does it GPF, or display some sort of error?

The script runs fine for me. The only thing I noticed about the last CASE is that it lacks the parentheses that are around all other CASEs. They shouldn't be necessary, but it may be related to the problem.

Ruud