Why don't you post what you have tried? Then we can help you fix it. This is not a code writing service and the posts above should be enough to get you started.
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."