function tagcopy(tag) {
  var tempval=eval("document."+tag);
  tempval.focus();
  tempval.select();
  therange=tempval.createTextRange();
  therange.execCommand("Copy");
}