Function.prototype.inherit=function(parent){var wrapper=function(){};wrapper.prototype=parent.prototype;this.prototype=new wrapper();};