You will probably have more luck, narrowing stuff down to pieces you have problems with into short example(s). We are here to help with the language and programming problems, not to solve your business logic.
holli
You can lead your users to water, but alas, you cannot drown them.