Sounds like you should read that tutorial common tater posted or another tutorial or a book that explains functions.