Please post your code using
[ CODE ] <your code> [ /CODE ] or <your code>

There are small chances that one will bother reading quite a long code which is badly formatted. Is just an advice.
...