function ExecuteScript(strId)
{
  switch (strId)
  {
      case "6lxyFLCRibf":
        Script1();
        break;
  }
}

window.InitExecuteScripts = function()
{
var player = GetPlayer();
var object = player.object;
var addToTimeline = player.addToTimeline;
var setVar = player.SetVar;
var getVar = player.GetVar;
window.Script1 = function()
{
  var myWindow = window.open("","Εκτύπωση","width=810,height=900,scrollbars=1,resizable=1");
var player=GetPlayer();
var DisplayName=player.GetVar("entryOnoma");
var DisplaySchool=player.GetVar("entrySxoleio");

var activitytext1=player.GetVar("TextEntry1");
var activitytext2=player.GetVar("TextEntry2");
var activitytext3=player.GetVar("TextEntry3");
var activitytext4=player.GetVar("TextEntry4");
var activitytext5=player.GetVar("TextEntry5");
var activitytext6=player.GetVar("TextEntry6");
var activitytext7=player.GetVar("TextEntry7");
var activitytext8=player.GetVar("TextEntry8");

var currentDate = new Date()
var day = currentDate.getDate()
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear();
var DisplayDate = day + "/" + month + "/" +year;


var contents = "<html><head><script type='text/javascript'>function printer() {document.getElementById('printButton').style.display='none';window.print();document.getElementById('printButton').style.display='block';}</script></head><body style='width:90%;padding:20px;'>";
contents+="<div id='printButton' style='height:20px;padding:10px;margin-bottom:20px;text-align:center;'><button onclick='printer()'>Εκτύπωση</button></div>";

contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;text-align:center;'>Το γλωσσάρι του Διαφωτισμού</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Όνομα: "+DisplayName+"</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Σχολείο: "+DisplaySchool+"</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Ημερομηνία: "+DisplayDate+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'><hr /></div>";
contents+="<div style='font-size:17px;margin-top:5px;'>Το νόημα των λέξεων-κλειδιά</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>1. <strong>ατομική ελευθερία</strong>: "+activitytext1+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>2. <strong>κριτική σκέψη</strong>: "+activitytext2+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>3. <strong>ανεξιθρησκία</strong>: "+activitytext3+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>4. <strong>μοναρχία</strong>: "+activitytext4+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>5. <strong>κοινοβούλιο</strong>: "+activitytext5+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>6. <strong>προνόμια</strong>: "+activitytext6+"</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>7. <strong>σύνταγμα</strong>: "+activitytext7+"</div><br><br>";
contents+="<div style='font-size:17px;margin-top:5px;'><strong>Ελεύθερο κείμενο</strong>: "+activitytext8+"</div>";
myWindow.document.write(contents);
}

};
