var gfcopy = function (feeds) {
  var cmd = new Command('gfselect link categories'), result = [];

  cmd.addEventListener('result', function (state) {
    result.push('<form id="form_edit" method="post" action="home/add?post">\n<textarea rows="'
                + String(state.result.length + 2)
                + '" cols="50" name="addresses" id="addresses" wrap="off" '
                + 'onchange="fixTextArea(this)" onfocus="this.select()">');
    for (var i = 0; i < state.result.length; ++i) {
      result.push(state.result[i] + '\n');
    }
    result.push('</textarea>\n<input type="submit" value="copy to your tako" onmouseover="fixTextArea(document.getElementById(\'addresses\'))" /></form>');
    delete result.loading;
  });
  result.loading = true;
  cmd.execute(feeds);
  return result;
};
