It's probably something higher up in your script... check for unmatched IF/ENDIF's or post all your code...

Shawn.