What emergency help do you need? What is the program not doing that you want it to, or doing that you don't want it to? It's generally impossible to determine the answers to these questions just by looking at the code, so stating exactly what you want gives us somewhere to start rather than just looking at the code and guessing.