function Component(){
	this.doc=null;
}

Component.prototype.setDocument = function(pDoc){
	this.doc = pDoc;
}

Component.prototype.getDocument = function(){
	if(this.doc == null){
		return Component.getDocument();
	} else{
		return this.doc;
	}
}

Component.getDocument = function(){
	return Component.doc;
}

Component.doc = window.document;