
function abrir_venta(url, w, h, titulo, scroll) {
  var windowprops = "top=" + (((screen.Height-h)/2)-30) + ", left=" + (screen.Width-w)/2 + ", width=" + w + ",height=" + h + ", scrollbars="+scroll+", title="+ titulo;
  index=Math.floor(Math.random()*999);  
  popup = window.open(url,'remote'+index,windowprops);
}

function abrir_novaventa(url, w, h, NomeVenta) { 
  var windowprops = "top=" + (((screen.Height-h)/2)-30) + ", left=" + (screen.Width-w)/2 + ", width=" + w + ",height=" + h + ", scrollbars=1";
  popup = window.open(url,NomeVenta,windowprops);
  popup.focus();
  return popup;
}

function abrir_menu(url, w, h, NomeVenta) { 
  if (url!="") {
	  var windowprops = "top=" + (((screen.Height-h)/2)-30) + ", left=" + (screen.Width-w)/2 + ", width=" + w + ",height=" + h + ", scrollbars=1";
	  popup = window.open(url,NomeVenta,windowprops); 
	  popup.focus();
  }
}

function abrir_novaventa_senBarras(url, w, h, NomeVenta) { 
  var windowprops = "top=" + (((screen.Height-h)/2)-30) + ", left=" + (screen.Width-w)/2 + ", width=" + w + ",height=" + h + ", scrollbars=no, toolbar=no, menubar=no, resizable=no, location=no, directories=no, status=no, title=no";
  popup = window.open(url,NomeVenta,windowprops);
  popup.focus();
  return popup;
}

function resolucionPantalla(){
	return (screen.width+"x"+screen.height); 
}

// Abre la ventana de Enlaces de interés
function Abrir() {
	var url='enlaces.html';
	window.open(url,'Outras webs de interese','height=400,width=250,scrollbars=yes,status=false,menubar=false,resizable=false,location=no');
}
