in reply to Need help with a script

You can start off by reading the following: Then write some code and post again with specific questions, if necessary.

See also: How do I compose an effective node title?