function openwindow(thisfile)
{
  popupWin = window.open(thisfile, 'open_window', 'toolbar,scrollbars,resizable,dependent,width=580,height=355,left=0,top=0')
}

function getcode(codeblockbox)
{
  var textbloc = eval("document."+codeblockbox)
  textbloc.focus()
  textbloc.select()
  
  if (document.all)
  {
    therange = textbloc.createTextRange()
    therange.execCommand("Copy")
    alert("Music Code Block copied successfully!")
  }
}