function copy2Clipboard(obj)
{
  var textRange = document.body.createTextRange();
  textRange.moveToElementText(obj);
  textRange.execCommand("Copy");
}