<?php

/*
 *	W-AGORA 4.1
 *	-----------
 *	$Id: showimg.php,v 1.2 2004/12/03 21:23:13 mdruilhe Exp $
 *	Usage:		Display an image in a popup window
 *	Syntax:		showimg.php?url=img_url&w=window_width&h=$window_height&title=window_title
 *	Author:		Per-Henrik Johansson (www.josini.dk)
 *  Modified:	Emanuele Iannone (manu75*AT*libero.it), apr 2003
 *				Marc Druilhe <mdruilhe@w-agora.net>
 *
 */

	require ("globals.inc");

# Set default values for window size
	$width = empty($w) ? 600 : $w;
	$height = empty($h) ? 600 : $h+52;
?>
<HTML>
<HEAD>
<TITLE><?php echo stripslashes($title)?></TITLE>
<script language="JavaScript1.2"><!--
top.window.moveTo(0,0);
if (document.all) {
  top.window.resizeTo(<?php echo $width?>,<?php echo $height?>);
} else if (document.layers||document.getElementById) {
  top.window.outerWidth = <?php echo $width?>;
  top.window.outerHeight = <?php echo $height?>;
}
//--></script>
<STYLE>
.textsmall {color=black; text-decoration: none;font-family:verdana,arial,helvetica;font-size:9px;}
</STYLE>
</HEAD>
<BODY topmargin=0 leftmargin=0 rightmargin=0>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
 <TR>
  <TD align=center>
   <A HREF='javascript:self.close()' title='<?php echo LABEL_CLOSE_WINDOW;?>' onmouseover="window.status='<?php echo LABEL_CLOSE_WINDOW;?>';return true" OnMouseOut="window.status=' '"><IMG SRC="<?php echo stripslashes($url)?>" BORDER=0 ALT='<?php echo LABEL_CLICK_TO_CLOSE_WINDOW;?>' GALLERYIMG="no"></A>
   <DIV class="textsmall"><?php echo LABEL_CLICK_TO_CLOSE_WINDOW;?></DIV>
  </TD>
 </TR>
</TABLE>
</BODY>
</HTML>
