EndIf with no If means exactly what it says. Kix sees an EndIf but no corresponding If. This could be because the If is missing or there is a missing quote or a missing ). This could be a pain to figure out especially when your script grows bigger and bigger and bigger and .......
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.