More ...
This adapted script and many more are available free online at The JavaScript Source!! http://javascript.internet.com