and what are your questions about this script?
We can answer your questions, but we need to know what your problems are before we can help you.
If you have problems with the basics of script handling, then I suggest you follow the link "how to use a script" in my signature and work through that tutorial.