Thank you for the rapid responses. I had no idea about Regular Expressions. The first book looked at was the JavaScript Cookbook printed in 1997. It did not cover Regular Expressions at all (the book cost me half a buck). I am waiting to get Flanagans from my library.
GuerillaBuild was right . Just looking at a expression is mind bending at first. So I might try something like this to start.
re = /^(\d)(\d)(\d)$/
I am not sure about the rest. Maybe something with $1 ,$2, $3 somewhere somehow to separate the digits.
Thanks again.
Project Boredom 2 is here. [Link: mediafire.com] ------------------------ Check Version 1 & 2 out in the files section.