Object.create = function(O,Properties){ if (Type(O) != 'Object' && Type(O) != 'Null') throw TypeError; var obj = new Object; obj.[[Prototype]] = O; if (Properties !== undefined) Object.defineProperties(obj, Properties); return obj;}