Jan Janak writes: > Positive values mean success, 0 means that the processing of the > script should stop and negative values mean failure. in that case, my function is correct, since it returns -1 if to tag doesn't exist. -- juha