<!--

var showDateShort = 1;
var showDate= 2;
var showDateTime= 3;
var showTime= 4;

function ShowDateTime(dateStyle)
{
	var today = new Date();
	var dStr = "";
	
	switch (dateStyle)
	{
		case showDateShort:
			dStr = today.toDateString();
			break;
		case showDateTime:
			dStr = today.toLocaleString();
			break;
		case showTime:
			dStr = today.toLocaleTimeString();
			break;
		case showDate:
		default:
			dStr = today.toLocaleDateString();
			break;
	}
	//document.write(dStr);
	return(dStr);
}

var gAutoPrint = true; 
// Flag for whether or not to automatically call the print function

function printSpecial(srcPage)
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HEAD>\n<BODY>\n';
		var ts = ShowDateTime(showDateTime);
		html += '\n <img src=\"../images/Kalabokis/title_en.jpg\"> \n' + '<hr>\n';
		
		var printReadyElem = document.getElementById("content");
		
		if(printReadyElem != null) {
				html += printReadyElem.innerHTML;
		} else if(document.getElementById("contentleft") != null) {
			printReadyElem = document.getElementById("contentleft");
			html += printReadyElem.innerHTML;
		} else {
			alert("Could not find the content section in the HTML");
			return;
		}

		/* skip the part of srcPage after the '?' ... */
		var qpos = srcPage.indexOf("?");
		var grFlag = false;
		if(qpos != -1) {
			if(srcPage.indexOf("?el") != -1) {
				grFlag = true;
			}
			srcPage = srcPage.substring(0, qpos);
		}

		if(grFlag) {
			html += '\n <hr><font family="Verdana" size="2">Εκτύπωση από [' + 
				srcPage + '] την [' + ts + '] </font>\n';
		} else {
			html += '\n <hr><font family="Verdana" size="2">Page printed from [' + 
				srcPage + '] on [' + ts + '] </font>\n';
		}


		html += '\n</BODY>\n</HTML>';
		
		var printWin = window.open("","printSpecial", "width=680,height=490,scrollbars=yes");
		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.");
	}
}
-->



