// Funciones para manejo de ventanas emergentes

function abreVentanaCentrada(url, ancho, alto, scroll)
{
	anchoPantalla = screen.availWidth;
	altoPantalla = screen.availHeight;
	
	posX = Math.round((anchoPantalla - ancho)/2);
	posY = Math.round((altoPantalla - alto)/2);
	
	opciones = "width="+ancho+",height="+alto+",top="+posY+",left="+posX+",scrollbars="+scroll+",resizable=1";

	nueva = window.open (url,'',opciones);
}