/* $BVista: bezzabradli/scripts.js,v 1.1.1.1 2003/06/02 10:14:49 jakubasan Exp $ */

function open_win(url, target) {
  was_open = false;
  win = window.open(url, target);
  win.focus();
  return ('object' == typeof(win)) ? true : false;
}

function open_pic(url, target, width, height) {
  left = (window.screen.width / 2) - (width / 2);
  topi = (window.screen.height / 2) - (height / 2);

  options = 'margin=0,scrollbars=0,toolbar=0,resizable=yes,top=' + topi + ',left=' + left + ',menubar=0,width=' + width + ',height=' + height;
  win = window.open(url, target, options);    
  win.focus();
  return ('object' == typeof(win)) ? true : false;
}


