Rod,

Please post the contents of your script here on the board so that we can see what is on those lines you said give errors.

We can't see the code, so we have no idea what is going on.