Hilary, thanks for the tip. You were correct, I have added the namespace definition to the top of the js file and the undeclared namespace error is gone, but now I am getting an "Object doesn't support this property or method error" on the following line:
XDocument.UI.alert(e.description);
Any idea what could be wrong with this? i am using IP 2007 and saving as 2003.
TIA
Dean