function ExecuteScript(strId)
{
  switch (strId)
  {
      case "5VQJ6Yj8RAQ":
        Script1();
        break;
  }
}

function Script1()
{
  var myWindow = window.open("Print my notes", "Print", "width=810,height=610,scrollbars=1,resizable=1");
var player = GetPlayer();
var exercisenotes1 = player.GetVar("MyNotes");
var contents = "";
contents += "<html><head>";
contents += "<style>html { font-family: Arial; } h1, p, div { margin: 1em 0; } h1 { font-size: 20px; } .notice { font-size: 16px; } .content { font-size: 12px; white-space: pre-line; } @media print { .notice { display: none; } }</style>";
contents += "</head>";
contents += "<body>";
contents += "<h1>My Notes: Unit 0 Topic 1</h1>";
contents += "<p class='notice'>These are the notes you took during this topic. You can copy and paste them to your preferred location or click the button below to export them to PDF or print them.</p></div>";
contents += "<p class='content'>" + exercisenotes1 + "</p>";
contents += "<div class='notice'><button onclick='window.print();'>Export my notes</button></div>";
contents += "</body></html>";
myWindow.document.write(contents);
}

