/*
  $Id: general.js,v 1.3 2003/02/10 22:30:55 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/



function openpopup(url,width,height)
{
var windowX = Math.ceil( (window.screen.width  - width) / 2 );
var windowY = Math.ceil( (window.screen.height - height) / 2 );
winpops=window.open(url, "", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0");
winpops.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );
winpops.resizeTo( Math.ceil( width ) , Math.ceil( height ) );
}

