plus = {
  tselFlv: function(_id)
  {
    var tid = _id;
    var tHtml = $('flvContent').innerHTML;
    var tID = $('flvID').value;
    if (tID != tid)
    {
      do
      {
        tHtml = tHtml.replace(tID + '.flv', tid + '.flv');
        tHtml = tHtml.replace(tID + '.jpg', tid + '.jpg');
      } while (tHtml.indexOf(tID + '.flv') != -1 || tHtml.indexOf(tID + '.jpg') != -1);
      $('flvContent').innerHTML = tHtml;
      $('flvID').value = tid;
    };
  },
  tpopWin: function(_strurl, _strname, _strwidth, _strheight, _strscroll)
  {
    var twidth = _strwidth;
    var theight = _strheight;
    var tleftsize = 0;
    var ttopsize = 0;
    if (twidth == 0 || theight == 0)
    {
      twidth = screen.width - 8;
      theight = screen.height - 55;
    }
    else
    {
      tleftsize = (screen.width) ? (screen.width - twidth)/2 : 0;
      ttopsize = (screen.height) ? (screen.height - theight)/2 : 0;
    };
    window.open(_strurl, _strname, 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + _strscroll + ',resizable=no' );
  }
};

plus.select = {
  tInit: function(_obj, _value)
  {
    var tobj = _obj;
    var tvalue = _value;
    if (tobj)
    {
      for (ti = 0; ti < tobj.options.length; ti ++)
      {
       if (tobj.options[ti].value == tvalue) tobj.selectedIndex = ti;
      };
    };
  }
};

plus.tdCT1 = {
  tSel: function(_id)
  {
    var tid = _id;
    var tobj1 = $('tdCT1-' + tid);
    var tobj2 = $('tdCT2-' + tid);
    var tobj3 = $('imgCT1-' + tid);
    if (tobj1 && tobj2 && tobj3)
    {
      tobj1.className = 'tdCT1Selected';
      tobj2.className = 'tdCT1Selected';
      tobj3.className = 'absmiddle';
    };
  },
  tSelect: function(_id, _fid)
  {
    var tid = _id;
    var tfid = _fid;
    var tnid = tid;
    var tobj1 = $('tdCT1-' + tnid);
    if (!tobj1)
    {
      tnid = tfid;
      tobj1 = $('tdCT1-' + tnid);
    };
    var tobj2 = $('tdCT2-' + tnid);
    var tobj3 = $('imgCT1-' + tnid);
    if (tobj1 && tobj2 && tobj3)
    {
      tobj1.className = 'tdCT1Selected';
      tobj2.className = 'tdCT1Selected';
      tobj3.className = 'absmiddle';
    };
  }
};
