<?php
/**
 * $Source: /home/cvs/nukescripts/kernel/popup.php,v $
 * $Revision: 1.1.0a $
 * $Author: cyril $
 * $Date: 2006/06/19 21:03:12 $
 *
 */
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
//defined('MAXIMUS') or die ('Access denied popup MAXIMUS directly...');

echo "<script type='text/JavaScript'>\n"
	."<!-- Begin\n"
	."function NewsReadWindow(mypage, myname, w, h, scroll) {\n"
	."var winl = (screen.width - w) / 2;\n"
	."var wint = (screen.height - h) / 2;\n"
	."winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''\n"
	."win = window.open(mypage, myname, winprops)\n"
	."if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }\n"
	."}\n"
	."//  End -->\n"
	."</script>\n";