var gAutoPrint = true;
// Flag for whether or not to automatically call the print function
function getDate()
{
	    var today = new Date();
	    var year = today.getUTCFullYear();
	    return year 
}
function PrintPage(MyYear)
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';
html += '<link href=\"/App_Themes/default/StyleSheet.css\" rel=\"stylesheet\" type=\"text/css\">'
html += '\n</HE' + 'AD>\n<BODY>\n';
html += '<table width=\"750\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align="\center\"><tr><td align="\center\">\n';
html +='<img src=\"/EAImages/logo.png\" alt="\EgyptAir Logo\">'
html += '</td></tr></table>\n';
html += '<a href=\"javascript:window.close();\" >Close this window</a>'
html += '<hr width="\300\" align="\center\">'
html += '<table width=\"575\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align="\center\"><tr><td align=\"right\">\n';
var printReadyElem = document.getElementById("content");
//alert(document.getElementById("Content").innerHTML);
if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the print ready section in the HTML");
return;
}
	html += '</td></tr><tr><td align="\center\" class="\medium\">';
	html += '';
	html += '<br><br>';
	html += '<BR>';
	html += '<p class="\medium\"><strong>&copy; '+getDate()+' EgyptAir, All rights reserved</strong></p>';
	html += '</td></tr></table>\n';
	html += '\n</BO' + 'DY>\n</HT' + 'ML>';
	var printWin = window.open();
	printWin.document.open();
	printWin.document.write(html);
	printWin.document.close();
	if (gAutoPrint)
	printWin.print();
}
else
{
alert("Sorry, the print ready feature is only available in modern browsers.");
}
}
