function isNode( obj ) { var documentElement = ( obj ? obj.ownerDocument || obj : 0 ).documentElement; return documentElement ? documentElement.nodeName === "HTML" : false; }