JavaScript was doing the right thing treating your string as true. I recommend you to pick up JavaScript: The Good Parts and read it a few times. [It is short and packed with info, he explains this stuff]
Eric
Don't get me started about those stupid light bulbs.