﻿var mNicEditor;
var mNicEditor_index = -1;
function init_txtContent()
{
  mNicEditor = null;
  mNicEditor = new nicEditor({iconsPath : 'js/nicEditorIcons.gif', buttonList : ['bold','italic',
  'underline','fontFamily','fontSize',
  'color','link','ol','ul','indent','unindent','left','center','right']}).panelInstance('txtContent');
  mNicEditor_index++;
}

function setTabSelected(index)
{
  var form = document.getElementById('form1');
  if(form!=null)
  {
    for(var i = 1; i < 7; i++)
    {
      var el = form['ft' + i];
      if(el != null)
      {
        if(i != index)
          el.src = "images/bar" + i + ".gif";
        else
          el.src = "images/bar" + i + "b.gif";
      }
    }
  }
}