/*************************************************************************
 ** Extend one class with another, the baseclass becomes the subclass'	**
 ** superclass and the subclass inherits all baseclass' functionality.	**
 *************************************************************************/
function Inheritance_extendClass(pvSubClass, pvBaseClass)
{
	function Inheritance() { }
	Inheritance.prototype = pvBaseClass.prototype;
	pvSubClass.prototype = new Inheritance();
	pvSubClass.prototype.constructor = pvSubClass;
	pvSubClass.superclass = pvBaseClass.prototype;
}