////////////////////////////////////////////////////////////////////////////////
// project    : XOS-Shop, open source e-commerce system
//              http://www.xos-shop.com
//                                                                     
// filename   : general.js
// author     : Hanspeter Zeller <hpz@xos-shop.com>
// copyright  : Copyright (c) 2007 Hanspeter Zeller
// license    : Released under the GNU General Public License, see LICENSE.txt
//
// note       : This script is distributed in the hope that it will be useful,
//              but WITHOUT ANY WARRANTY; without even the implied warranty of
//              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//              GNU General Public License for more details.   
////////////////////////////////////////////////////////////////////////////////
/* $Id: general.js,v 1.0 2008/04/23 06:17:22 hp Exp $ */

function popupImages(url) {
  var x = (screen.availWidth - 150) / 2;
  var y = (screen.availHeight - 300) / 2;
  window.open(url,"popupImages","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=10,height=10,screenX="+x+",screenY="+y+",top="+y+",left="+x).focus();
}

function popupContent(url) {
  var x = (screen.availWidth - 150) / 2;
  var y = (screen.availHeight - 250) / 2;
  window.open(url,"popupContent","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=10,height=10,screenX="+x+",screenY="+y+",top="+y+",left="+x).focus();
}

