function CabiBase(){}

//PRIVATE METHODS
	CabiBase.prototype.addInputBox = function addInputBox(_type,_inputname){		
		var input = document.createElement("input");
		input.setAttribute("type",_type);
		input.setAttribute("id",_inputname);		
		return input;
	}	
	
	CabiBase.prototype.addRadioBox = function addRadioBox(_val,_inputname,_id){		
		var input = document.createElement("input");
		input.setAttribute("type","radio");
		input.setAttribute("id",_id);
		input.setAttribute("name",_inputname);
		input.setAttribute("value",_val);		
		return input;
	}	
	
	CabiBase.prototype.addImageBox = function addImageBox(_id){		
		var img = document.createElement("img");
		img.setAttribute("id",_id);		
		return img;
	}
	
	CabiBase.prototype.addTextareaBox = function addTextareaBox(_name){
		var textarea = document.createElement("textarea");
		textarea.setAttribute("name",_name);
		textarea.setAttribute("id",_name);
		return textarea;
	}
	
	CabiBase.prototype.addSelectBox = function addSelectBox(_inputname){		
		var selectbox = document.createElement("select");
		selectbox.setAttribute("id",_inputname);
		return selectbox;
	}
		
	CabiBase.prototype.addOption = function addOption(elem,val,text){		
		var opt = document.createElement("OPTION");
		var txt = document.createTextNode(text);
		opt.setAttribute("value",val);
		opt.appendChild(txt);
		elem.appendChild(opt);	
	}
	
	CabiBase.prototype.createRow = function createRow(_align,_valign){
		var tr = document.createElement("TR");
		tr.setAttribute("align",_align);
		tr.setAttribute("valign",_valign);
		return tr;
	}
	
	CabiBase.prototype.createCol = function createCol(_align,_valign,_colspan){
		var td = document.createElement("TD");
		td.setAttribute("align",_align);
		td.setAttribute("valign",_valign);
		if(_colspan > 0){td.setAttribute("colspan",_colspan);}
		return td;
	}
	
	CabiBase.prototype.createTable = function createTable(_id,_width,_border,_cellpadding,_cellspacing,_rows,_cols){
		var table = document.createElement("TABLE");
		table.setAttribute("id",_id);
		table.setAttribute("width",_width);	
		table.setAttribute("border",_border);	
		table.setAttribute("cellpadding",_cellpadding);	
		table.setAttribute("cellspacing",_cellspacing);
		var tbody = document.createElement("TBODY");
				
		for(i=0;i < _rows;i++){
			var tr = this.createRow("left","bottom");
			for(c=0;c < _cols;c++){
				tr.appendChild(this.createCol("left","bottom",0));
			}
			tbody.appendChild(tr);
		}	
			
		table.appendChild(tbody);
		return table;
	}
	
	CabiBase.prototype.row = function getRow(_table,intRow){		
		var rows = _table.getElementsByTagName("TR");
		return rows[intRow];
	}
	
	CabiBase.prototype.col = function getCol(_table,intRow,intCol){
		var rows = _table.getElementsByTagName("TR");
		var cols = rows[intRow].getElementsByTagName("TD");
		return cols[intCol];
	}	
	
	