function OpenWindow (URL,Name,W,H,Scroll) {
  var WinLeft = (screen.width - W) / 2;
  var WinTop = (screen.height - H) / 2;
  WinProps = 'width='+W+',height='+H+',top='+WinTop+',left='+WinLeft+',scrollbars='+Scroll+',toolbar=0,location=0,directories=0,status=0,menuBar=0,resizable=0';
  Win = window.open(URL,Name,WinProps);
  if (parseInt(navigator.appVersion) >= 4) {
    Win.window.focus();
  }
}
/* ----- */

function noticias_indicar (_id) {
  OpenWindow('?pg=noticias_indicar&id='+_id,'',454,400,1);
}

function imprimir (_w, _h, _src) {
  if (_w == 0) {
    _w = screen.width;
  }
  if (_h == 0) {
    _h = screen.height;
  }
  var _left = (screen.width - _w) / 2;
  altura = ((screen.height - _h) / 2) - 50;
  var _top = (altura > 0 ? altura : 0);
  win = window.open(_src, "Imprimir", 'width='+_w+', height='+_h+', top='+_top+', left='+_left+', toolbar=yes, location=no, status=no, menubar=yes, scrollbars=yes, resizable=no');
  if (parseInt(navigator.appVersion) >= 4) {
    win.window.focus();
  }
}

