function opengfxwin(file,width,height,titl,alt){
	x = (640 - width)/2, y = (480 - height)/2;
    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }	
	widthinfo="width=" + (width + 20);
	heightinfo=",height=" + (height + 40);
	gfxwin=window.open("", "", 'toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=no,marginwidth=0,marginheight=0,screenX='+x+',screenY='+y+',top='+y+',left='+x+',' + widthinfo + heightinfo);
	contents=
	"<html>" +
	"<head>" +
	"<DIV style='background-image: url(content/clearpixel.gif);left: 10px;top: 26px;z-index: 101;position:absolute;height:" + height + ";width=" + width + ";'  onclick='" + "" + "javaScript:window.close();" + "" + "'>" +

	//background-image: url(../SiteImages/clearpixel.gif);


	"</DIV>" +
	"<title>Fotógyár referencia</title>" +
	"<link rel='stylesheet' type='text/css' media='screen' href='images/screen.css' />" +	
	"</head>" +
	"<body bgcolor='White' text='#324395' topmargin=0 leftmargin=0>" +
	"<table align='center'  border='0' cellpadding='0' cellspacing='3' width='100%'>" +
	"	<tr align='center'>" +
	"		<td>" + "<br></td>" +
	"	</tr>" +
	"	<tr>" +
	"		<td height='0'></td>" +
	"	</tr>" +
	"	<tr align='center'>" +
	"		<td><img src='content/" + file + "' width=" + width + " height=" + height + "></td>" +
	"	</tr>" +
	"</table>" +
	"</html>"

	gfxwin.document.write(contents);
}

function openGallery(ID) {
	var width = 650;
	var height = 550;
	window.open("gallery.asp?ID=" + ID, 'GalleryWin', 'marginwidth=0,marginheight=0,directories=no,height=' + height + ',width=' + width + ',location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,top=25,left=25')
}
