function tcTab(caption) { this.setConText=function(txt) { if(this.con!=null) this.con.parent.removeChild(this.con) this.con=document.createElement('div') this.con.style.cssText='width: 100%; height: 100%;' if(!this.sel) this.con.style.display='none' this.con.innerHTML=txt this.par.ctt.appendChild(this.con) return this.con } this.setConObj=function(val) { if(this.con!=null) this.con.parent.removeChild(this.con) if (typeof val === 'string' || val instanceof String) val=document.getElementById(val); if(val===null || typeof(val)=='undefined') return; this.con=val; if(!this.sel) this.con.style.display='none'; this.par.ctt.appendChild(this.con); return val; } this.setSel=function() { for(var i=0;i