window.InitUserScripts = 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 DisplayOnoma=player.GetVar("onoma");
var DisplaySxoleio=player.GetVar("sxoleio");

var day1=player.GetVar("TextEntry1");
var day2=player.GetVar("TextEntry2");
var day3=player.GetVar("TextEntry3");
var day4=player.GetVar("TextEntry4");
var day5=player.GetVar("TextEntry5");
var day6=player.GetVar("TextEntry6");
var day7=player.GetVar("TextEntry7");


var contents = "<html><head></head><body style='width:650px;padding:20px;'>";
contents+="<div style='height:20px;padding:10px;margin-bottom:20px;text-align:center;'><button onclick='javascript:window.print();'>Εκτύπωση</button></div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Πρόγραμμα δράσεων της εβδομάδας</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Όνομα: "+DisplayOnoma+"</div>";
contents+="<div style='font-size:18px;font-weight:bold;margin-top:10px;'>Σχολείο: "+DisplaySxoleio+"</div>";
contents+="<br><div style='font-size:17px;margin-top:5px;'><hr /></div><br>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Κυριακή:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day1+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Δευτέρα:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Τρίτη:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Τετάρτη:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Πέμπτη:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Παρασκευή:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+="<div style='font-size:17px;font-weight: bold;margin-top:5px;'>Σάββατο:</div>";
contents+="<div style='font-size:17px;margin-top:5px;'>"+day2+"</div>";
contents+= "</body></html>";
myWindow.document.write(contents);
}

};
