Also, thanks for attempting to format code in a readable way, but there is an even better way to do that - see Using code tags properly
Also, thanks for attempting to format code in a readable way, but there is an even better way to do that - see Using code tags properly