var obj=new Object(); document.write(obj);
obj.toString=function() { return "my object"} document.write(obj);