Problem solved, the output, Warnings, Errors, Debugs window was pulled right across the Script input window, I only discovered this by accident. Since this was the first time I had used the Script editor one has to assume that this is the default state and that other beginners like myself might get caught out by this. Thanks.