/*
Element.prototype.getForm = function() {
	if (this) {
		var p = this.parentNode;
		while (p.tagName!='form' && p!=null) {
			p = p.parentNode;
		}
		if (p) return p;
		else return null;
	}
}

*/
/* CURRENTLY OCCUR ERROR FOR String.trim() */
//Object.getInstance = function() { return new this };

Object.prototype.extend = function(_parent) {
	//Pure Virtual Inheritance
	for (x in _parent) {
		this[x] = _parent[x];
	}
	
	//NEED OR NOT
	this.prototype = _parent;
	this.prototype.constructor = this;
	this.prototype.parent = _parent;
	return this;
};

