You will first need to learn to search and read tutorials and other relevant posts.
This forum is not for asking for help, this forum is only for posting tutorials and code snippets. Post in 'Scripting Help' for scripting help. (Thread was moved to the appropriate place by moderator)