function PopImage(imageURL,imageTitle){
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 800;
defaultHeight = 800;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=yes,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=yes,width=250,height=100,left='+PositionX+',top='+PositionY;

if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Παρακαλώ περιμένετε...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
	writeln('var isNN,isIE;');
	writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');
		writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function reSizeToImage(){');
	writeln('if (isIE){');
		writeln('window.resizeTo(100,100);');
		writeln('widthone=100-(document.body.clientWidth-document.images[0].width)');
		writeln('heightone=100-(document.body.clientHeight-document.images[0].height)');
		writeln('widthtwo=screen.width-100');
		writeln('heighttwo=screen.height-100');
		writeln('width=Math.min(widthone, widthtwo);');
		writeln('height=Math.min(heightone, heighttwo);');
		writeln('window.resizeTo(width,height);}');
	writeln('if (isNN){');       
		writeln('window.innerWidth=document.images["George"].width;');
		writeln('window.innerHeight=document.images["George"].height;}}');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</sc'+'ript>');

if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="auto" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=ffffff scroll="auto" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');

writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}


function PopImageWithLink(imageURL,imageTitle,imageLink){
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 1000;
defaultHeight = 1000;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = false

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=auto,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=auto,width=250,height=100,left='+PositionX+',top='+PositionY;

if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Παρακαλώ περιμένετε...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
	writeln('var isNN,isIE;');
	writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');
		writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function reSizeToImage(){');
	writeln('if (isIE){');
		writeln('window.resizeTo(100,100);');
		writeln('widthone=100-(document.body.clientWidth-document.images[0].width)');
		writeln('heightone=100-(document.body.clientHeight-document.images[0].height)');
		writeln('widthtwo=screen.width-100');
		writeln('heighttwo=screen.height-100');
		writeln('width=Math.min(widthone, widthtwo);');
		writeln('height=Math.min(heightone, heighttwo);');
		writeln('window.resizeTo(width,height);}');
	writeln('if (isNN){');       
		writeln('window.innerWidth=document.images["George"].width;');
		writeln('window.innerHeight=document.images["George"].height;}}');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</sc'+'ript>');

if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="auto" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=ffffff scroll="auto" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');

writeln('<a href='+imageLink+' target="new"><img name="George" src='+imageURL+' style="display:block" border="0"></a></body></html>');
close();		
}}


function PopImageAbsolut (image, sizex, sizey)
{
	photowin = window.open("", "photowin", "width="+sizex+", height="+sizey+", toolbar=no, menubar=no, screenX=100, screenY=100, status=no, resizeable=no");
        photowin.document.write ('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1253"><title>Προβολή Εικόνας</title></head><body>');
	photowin.document.write ('<p align="center"><img border="0" src="'+image+'" onclick="javascript:window.close()">');
	photowin.document.write ('<br><Font face="Tahoma" size="2">Πατήστε πάνω στην εικόνα για να κλείσει το παράθυρο</font></p></body></html>');
};

//html page pop up
function PopPage(page, sizex, sizey)
{
	popwin = window.open(page, "popwin", "width="+sizex+", height="+sizey+", toolbar=no, menubar=no, screenX=100, screenY=100, status=no, resizeable=no, scrollbars=yes");
}
function PopPage2(page, sizex, sizey)
{
	popwin = window.open(page, "popwin2", "width="+sizex+", height="+sizey+", toolbar=no, menubar=no, screenX=100, screenY=100, status=no, resizeable=no, scrollbars=yes");
}

//Κλείσιμο παραθύρου χωρίς επιβεβαίωση
function winclose() 
{
 window.close();
}

//Εισαγωγή φωτογραφίας
function newWindow(file,window) {
msgWindow=open(file,window,'resizable=no,Toolbar=no, menubar=no, status=yes, scrollbars=yes, height=270, width=600, left=50, Top=50');
if (msgWindow.opener == null) msgWindow.opener = self;
};

//Εισαγωγη ημερομηνίας σε φόρμα με την χρήση popup ημερολογίου
function y2k(number)    { return (number < 1000) ? number + 1900 : number; }
function padout(number) { return (number < 10) ? '0' + number : number; }

var today = new Date();
var day = today.getDate(), month = today.getMonth(), year = y2k(today.getYear()), whichOne = 0;

function restart() {
    document.record.elements['elemen' + whichOne].value = '' + padout(day) + '-' + padout(month - 0 + 1) + '-' + year;
    mywindow.close();
};

function dateWindow(number) {
    whichOne = number;
    day = today.getDate(), month = today.getMonth(), year = y2k(today.getYear());
    mywindow=open('index.htm?action=cal','myname','resizable=no,width=350,height=270');
    mywindow.location.href = 'index.htm?action=cal';
    if (mywindow.opener == null) mywindow.opener = self;
};

//Εισαγωγή Κωδικού Εξωτερικής Βάσης
function extDBWindow(page,numero,type) {
    whichOne = numero;
    mywindow=open(page,type,'resizable=no, width=700, height=400, scrollbars=yes, status=yes');
    mywindow.location.href = page;
    if (mywindow.opener == null) mywindow.opener = self;
};

function popWindow(page,numero,type) {
    whichOne = numero;
    mywindow=open(page,type,'resizable=no, width=700, height=400, scrollbars=yes');
    mywindow.location.href = page;
    if (mywindow.opener == null) mywindow.opener = self;
};

function PopLink (page, sizex, sizey)
{
	popwin = window.open(page, "popwin", "width="+sizex+", height="+sizey+", toolbar=no, menubar=no, screenX=100, screenY=100, status=no, resizeable=yes, scrollbars=yes");
};