I havent looked at your script yet, but a real good idea when you post alot of code like that is to click the Code link down the bottom, this adds two tags called code & /code put youtr code between them and its spaced out like it should be instead of all being on the left wall, this makes reading it much simplier, and thus more likely to get someone helping.