Obliviboy already have script that do the same that you want to do, but his script is not free. Go to cgtalk and search for similar thread. There is a guy who post similar script, but the script is encrypted. Ask him for help.:)
I know about Oblivion Script. In fact, I love his scripts. I find his work inspiring, Anubis works, and yours, very inspiring. I have not programmed anything in MaxScript for a long time, but I think I can do something similar for free to the community.