First of all, Crome and Cereveza showed you your problems!
if WHATEVER
{
CODE!
}
Second of all, take a look at tutorials, and download the EUO single page tutorial html( from easyuo.com ), to get the basics. with out them, you wont event get a script working. How the gurus say, rtfm. I would help you, but, if you dont try there is no point of doing that.