Chris,
Most of us are willing to assist you with fixing logic/syntax, but I don't know if anyone is going to want to write the script for you. We've all been where you are. But you need to give it a shot, so you can learn how to do it. Then come back with something we can work from/with if...