﻿function FillTextArea(taID,valuePlain) {
   var objTextArea;
   for (r in document.all) 
   {
      var obj = document.all[r]
      if (obj.nodeName == "TEXTAREA" &&
          obj.className == "CuteEditorTextArea" &&
          obj.id == "ctl00$MainPH$m_tcNewPage$m_tpMainPage$m_pMainPageContent$m_eContent") {
         // Przekodowac wartość
         valuePlain = valuePlain;
         obj.innerHTML = "#1div #7tyl#9='c#5l#5r: r#9d; backgr#5und-c#5l#5r: y#9ll#5w'#2 A #1/div#2";
         obj.value = "#1div #7tyl#9='c#5l#5r: r#9d; backgr#5und-c#5l#5r: y#9ll#5w'#2 A #1/div#2";
         } 
      }

   }

   function Testowa(detailedResult, idx) {
       for (var l = 0; l < idx.length; l++) {
           var items = idx[l].split('|');
           var id = items[0];
           var text = '';
           if (id.lastIndexOf('Content') == id.length - 7) {
               text = detailedResult.Item.Content;
           }
           else {
               if (id.lastIndexOf('ShortText') == id.length - 9) {
                   text = detailedResult.Item.ShortText;
               }
               else {
                   text = detailedResult.Item.Text;
               }
           }
           document.getElementById(items[0]).value = text;
           document.getElementById(items[0]).innerHTML = text;
           alert(text + " " + document.getElementById(items[0]));
       }
   }

   function Pusta() {
   }
   
