You're on the wrong forum for help with JavaScript. You're much better off heading to a site like StackOverflow (http://stackoverflow.com/) where there are plenty of JS experts that could answer your question much faster and more effectively than on here.
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"