/**
 * Preview popup 
 *
 * @package gcms
 * @version 2.0
 * @author Pawel Zmyslowski <hocus@dronet.pl>
 * @copyright 2005 GTK.PL
 */

function showPreview( file )
{
  var scrX = getScreenWidth / 2 - 50;
  var scrY = getScreenHeight / 2 - 50;

/*
  alert( "scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=100,height=100,screenX="+scrX+",screenY="+scrY);
*/

  window.open("page.php?page=preview&file=" + file, "preview",
	      "scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=100,height=100,screenX="+scrX+",screenY="+scrY);
}
