function windowLegalInfoEditor(loadMode, schoolID, treenode){

  if (!canEdit)
    return false;
  
  var xmlCols = [];
  xmlCols.push({name: 'legal_terms', mapping: 'legal/terms'});
  xmlCols.push({name: 'legal_privacy', mapping: 'legal/privacy'});

  var navInfo = 'Changes will be applied when you click \'Save\' below.';
  var legalInfoTab = new Ext.FormPanel({
              labelWidth: 85, // label settings here cascade unless overridden
              title: 'Legal',
              id: loadMode ? 'tabSchoolLegalInfo' : 'winSchoolLegalInfo',
              bodyStyle:'padding:5px',
              width: 350,
              layout: 'fit',
              bodyStyle: 'background: #DFE8F6',
              waitMsgTarget: !Ext.isIE,
              autoScroll: true,
              reader : new Ext.data.XmlReader({
                    record : 'result',
                    success : '@success'
                }, xmlCols),
              items: new Ext.Panel({
                          layout: 'border',
                          border: false,
                          items: [
                            new Ext.Panel({
                              region: 'north',
                              border: true,
                              html: '<div class="siteConfigInfo"><div class="siteConfigHeader">Here you define Legal and your Privacy Policy</div><div class="siteConfigText">'+navInfo+'</div></div>'
                            }),
                            new Ext.Panel({
                              region: 'center',
                              activeTab: 0,
                              margins: '5 0 0 0',
                              bodyStyle:'padding: 5px 10px 0',
                              border: true,
                              plain: true,
                              autoScroll: true,
                              defaults: {autoScroll:true, xtype: 'fieldset', bodyStyle:'padding:15px 10px 0'},
                              items: [{
                                            title: 'Terms & Conditions',
                                            height: 300,
                                            layout: 'fit',
                                            items: {
                                                xtype: 'htmleditor',
                                                name: 'legal_terms'
                                            }
                                        },{
                                            title: 'Privacy Policy',
                                            height: 300,
                                            layout: 'fit',
                                            items: {
                                                xtype: 'htmleditor',
                                                name: 'legal_privacy'
                                            }
                                        }
                                      ]
                          })
                        ]
                      })
            });
  
  if (loadMode)
    return legalInfoTab;
    
}
