	function EnlargePhoto(file_name, title, width, height){
		var x,y;
		x=Math.floor((screen.width - width)/2 );
		y=Math.floor((screen.height- height)/2);
		win_width = width;
		win_height = height;
		var msgWindow = window.open ("", "", "height="+ win_height+",width="+ win_width+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,left="+x+",top="+y,"replace=true");
		if (msgWindow != null && msgWindow.opener == null) msgWindow.opener=window;
		msgWindow.document.write("<html><head><title>"+title+"</title><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'></head>");
		msgWindow.document.write("<body leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onBlur=\"javascript:window.close(); opener.focus();\">");
		msgWindow.document.write("<table border=0 cellpadding=0 cellspacing=0><td><a href=\"#\" onClick=\"javascript: window.close(); opener.focus();\"><img src=\""+file_name+"\" width="+ width +" height="+height+" border=0 alt=\""+ title +"\"></a></td></table></body></html>");
		msgWindow.focus();
	}
	
	function Popup(url, width, height){
		var x,y;
		x=Math.floor((screen.width - width)/2 );
		y=Math.floor((screen.height- height)/2);
		win_width = width;
		win_height = height;
		var msgWindow = window.open (url, "", "height="+ win_height+",width="+ win_width+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,left="+x+",top="+y,"replace=true");
		if (msgWindow != null && msgWindow.opener == null) msgWindow.opener=window;
		msgWindow.focus();
	}
	
