Hey, I'm 15 and have been using Visual Basic since I was early 14 - so we're both young programmers.
I've recently took an interest in other languages such as C++ and JavaScript and also .NET. Which are both very similar.
Just to say, great code sniplet. This would have been usefull a few weeks ago! Also, don't math variables have to be declared in JS? Like in C++:
Code:Int varNum;