/*
Función para abrir ventanas emergentes.
Parámetros:
url: dirección de destino.
target: nombre de la ventana donde se mostrará el contenido.
width: ancho de la ventana.
height: alto de la ventana.
*/
function abrirPopup(url, target, width, height){

    var top = (screen.height-height) / 2;
    var left = (screen.width-width) / 2;

	if(target == ""){target = "popup";}
	var popup = window.open(url, target, "width="+width+",height="+height+",left="+left+",top="+top+",status=no,toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes");
	popup.focus();
}
