/**
* @version $Id: joomla.javascript.js 3562 2006-05-20 12:27:49Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Joomla! is Free Software
*/

/**
* Pops up a new window in the middle of the screen
*/
function popupWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/**
* Pops up a new window in the middle of the screen with parameters
*/
function popupArgWindow(mypage, myname, w, h, scroll, params) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	//alert (params);
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage+params, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



/**
* My javascript functions 
*
*/



