rem: } 
add: }; 
context: Linker.Dialog.prototype.show = function(inputs, ok, cancel){  if(!this.ready)  {    var lDialog = this;    window.setTimeout(function() {lDialog.show(inputs,ok,cancel);},100);    return;  }  if(this.ddTree.innerHTML == '')  {    this.ddTree.innerHTML = this.dTree._linker_premade;  }  if(inputs.type=='url')  {    this.dialog.getElementById('urltable').style.display = '';    this.dialog.getElementById('mailtable').style.display = 'none';    this.dialog.getElementById('anchortable').style.display = 'none';  }  else if(inputs.type=='anchor')  {    this.dialog.getElementById('urltable').style.display = 'none';    this.dialog.getElementById('mailtable').style.display = 'none';    this.dialog.getElementById('anchortable').style.display = '';  }  else  {    this.dialog.getElementById('urltable').style.display = 'none';    this.dialog.getElementById('mailtable').style.display = '';    this.dialog.getElementById('anchortable').style.display = 'none';  }  if(inputs.target=='popup')  {    this.dialog.getElementById('popuptable').style.display = '';  }  else  {    this.dialog.getElementById('popuptable').style.display = 'none';  }  var anchor = this.dialog.getElementById('anchor');  for(var i=0;i<anchor.childNodes.length;i++) {    anchor.removeChild(anchor.childNodes[i]);  }  var html = this.linker.editor.getHTML();    var anchors = new Array();  var m = html.match(/<a[^>]+name="([^"]+)"/gi);  if(m)  {    for(i=0;i<m.length;i++)    {        var n = m[i].match(/name="([^"]+)"/i);        if(!anchors.contains(n[1])) anchors.push(n[1]);    }  }  m = html.match(/id="([^"]+)"/gi);  if(m)  {    for(i=0;i<m.length;i++)    {        n = m[i].match(/id="([^"]+)"/i);        if(!anchors.contains(n[1])) anchors.push(n[1]);    }  }    for(i=0;i<anchors.length;i++)  {    var opt = document.createElement('option');    opt.value = '#'+anchors[i];    opt.innerHTML = anchors[i];    anchor.appendChild(opt);  }  //if no anchors found completely hide Anchor-Link  if(anchor.childNodes.length==0) {    this.dialog.getElementById('anchorfieldset').style.display = "none";  }    // Connect the OK and Cancel buttons  var dialog = this.dialog;  var lDialog = this;  if(ok)  {    this.dialog.getElementById('ok').onclick = ok;  }  else  {    this.dialog.getElementById('ok').onclick = function() {lDialog.hide();};  }  if(cancel)  {    this.dialog.getElementById('cancel').onclick = cancel;  }  else  {    this.dialog.getElementById('cancel').onclick = function() { lDialog.hide()};  }  // Show the dialog  this.linker.editor.disableToolbar(['fullscreen','linker']);  this.dialog.show(inputs);  // Init the sizes  this.dialog.onresize();}
meta: 1743	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1743/878617918015c2c8847abc97bb36fbda96298ac5/linker.js/buggy/xinha/plugins/Linker/linker.js