To start with: I am not a scripting guru at all. In fact, I have no clue
But the sample script looks pretty straight forward. Can't you just modify where they tell you to?
There are some really gifted guys in the LQ Programming forum. They already helped me a lot. Maybe you'll find help there. Ask the mods to move your thread (I think if you open another one they may not like it).