function selectSnippet(text) {
  var tempval=eval("document."+text)
  tempval.focus()
  tempval.select()
}
