function copyToClipboard(field)
{
	var content = eval(document.getElementById(field))
    content.focus()
    content.select()
	var option = false;
try
  {
    var range = content.createTextRange()
    range.execCommand("Copy")
    window.status="Contents copied to clipboard"
    setTimeout("window.status=''",1800)
	alert('Copiato negli appunti ...')
	}
 catch(err)
  {
  option = true;
  }
  if( option ) {
	}
}

