Hello,
I think , I can fix your code in few hours, maybe less. I need a description what program should do and a copy of your code.
Have a nice day,
___________________________________________________________________________________________________________________Justas