Thanks for all the help guys... Its cleared things up a lot for me.
Although I feel a complete noob now :tongue:
The original code was from a tutorials website, but never worked... I had tried changing bits (eg. putting quotes around the numbers, double == etc.) but it never seemed to give...