Jango dude:

Simple typo ...

you've got "end if"

should be "endif"

Eh - we all get typos - right JP ?

Shawn.