Function.prototype.inheritFrom = function(BaseClass, oOverride){
	var Inheritance = function() {};
	Inheritance.prototype = BaseClass.prototype;
	this.prototype = new Inheritance();
	this.prototype.constructor = this;
	this.prototype.baseConstructor = BaseClass;
	this.prototype.superClass = BaseClass.prototype;

	if(oOverride){
		for(var i in oOverride) {
			this.prototype[i] = oOverride[i];
		}
	}
}
