// ----------------------------------------------------------------------------------------
// |  PopUp - Centro de la pantalla                                                       |
// ========================================================================================
// | Parámetros:                                                                          |
// |              1. url: dirección html de la página que debe abrir                      |
// |              2. ancho: tamaño del ancho de la página que debe abrir                  |
// |              3. alto: tamaño del alto de la página que debe abrir                    |
// |              4. barra: mostrar scrollbars en la página que debe abrir                |
// |                        'no' --> no activa                                            |
// |                        'yes' --> activa                                              |
// |                                                                                      |
// | Invocar:                                                                             |
// |             <a href="javascript:popUp('webmaster.html',480,520,no)">txt</a>          |
// |                                                                                      |
// ----------------------------------------------------------------------------------------

function popUp(url, ancho, alto, barra) {
	izquierda = (screen.width) ? (screen.width-ancho)/2 : 100
	arriba = (screen.height) ? (screen.height-alto)/2 : 100
	opciones = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + barra + ',resizable=0,width=' + ancho + ',height=' + alto + ',left=' + izquierda + ',top=' + arriba + ''
	window.open(url, 'popUp', opciones)
}
