MODx.panel.ImageTV=function(A){A=A||{};Ext.applyIf(A,{layout:"form",autoHeight:true,border:false,hideLabels:true,defaults:{autoHeight:true,border:false},items:[{xtype:"modx-combo-browser",browserEl:"tvbrowser"+A.tv,name:"tv"+A.tv,id:"tv"+A.tv,value:A.value,hideFiles:true,listeners:{"select":{fn:function(B){this.fireEvent("select",B);},scope:this},"change":{fn:function(B,C){this.fireEvent("select",{relativeUrl:C});},scope:this}}}]});MODx.panel.ImageTV.superclass.constructor.call(this,A);this.addEvents({select:true});};Ext.extend(MODx.panel.ImageTV,MODx.Panel);Ext.reg("modx-panel-tv-image",MODx.panel.ImageTV);MODx.panel.FileTV=function(A){A=A||{};Ext.applyIf(A,{layout:"form",autoHeight:true,border:false,hideLabels:true,defaults:{autoHeight:true,border:false},items:[{xtype:"modx-combo-browser",browserEl:"tvbrowser"+A.tv,name:"tv"+A.tv,id:"tv"+A.tv,value:A.value,hideFiles:true,listeners:{"select":{fn:function(B){this.fireEvent("select",B);},scope:this}}}]});MODx.panel.FileTV.superclass.constructor.call(this,A);this.addEvents({select:true});};Ext.extend(MODx.panel.FileTV,MODx.Panel);Ext.reg("modx-panel-tv-file",MODx.panel.FileTV);MODx.checkTV=function(B){var A=Ext.get("tv"+B);Ext.get("tvh"+B).dom.value=A.dom.checked?A.dom.value:"";};