rem:  var editor = document.htmlareas[i][1]; if (editor == undefined) {   var ta = document.htmlareas[i][0];    
context: function resetWysiwygi(hDiv){ if (document.htmlareas == undefined) {  // alert("htmlareas is undefined");  return; } var counter = document.htmlareas.length; // alert(counter); for (i=0; i<counter; i++) {  // alert("i="+i);  var editor = document.htmlareas[i][1];  if (editor == undefined)  {    // in a bad state, so we recreate wysiwyg    // first look up the ith wysiwyg id    var ta = document.htmlareas[i][0];    // alert("ta = " + ta);    // check if the textarea is in the division    var tas = hDiv.getElementsByTagName("textarea");    for (j=0; j<tas.length; j++)    {     var childId = tas[j].id;     // alert("childId=" + childId);     if (childId==ta)     {      // we make sure that the textarea is not set to "none"      tas[j].style.display = "block";      // finally, create a configuration and assign an HTMLArea to this textarea      var config=new HTMLArea.Config();      config.toolbar = [['fontname', 'space','fontsize', 'space','formatblock',        'space','bold', 'italic', 'underline'],    ['separator','strikethrough',        'subscript', 'superscript', 'separator', 'space', 'undo', 'redo',        'separator', 'justifyleft', 'justifycenter', 'justifyright',        'justifyfull', 'separator','outdent', 'indent'],        ['separator',        'forecolor', 'hilitecolor', 'textindicator', 'separator',        'inserthorizontalrule', 'createlink', 'insertimage', 'separator',        'showhelp', 'about' ],];      config.width='450px';      config.height='140px';      editor = HTMLArea.replace(ta,config);      document.htmlareas[i][1] = editor;      break;     }   }  } }}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1235/f65d8b1aef368c4a801bb28820598ef5eea4218f/hideDivision.js/clean/samigo/samigo-app/src/webapp/jsf/widget/hideDivision/hideDivision.js