function abreUrl(strUrl, blnExterna, intAncho, intAlto, intPosicionX, intPosicionY)
{
	var intAnchoPantalla = 800, intAltoPantalla = 600

	if (intAncho==undefined) intAncho = 600
	if (intAlto==undefined) intAlto = 400
	if (blnExterna==undefined) blnExterna=true
	
	if (blnExterna)
	{
		if (intPosicionX==undefined) intPosicionX = (intAnchoPantalla-intAncho)/2
		if (intPosicionY==undefined) intPosicionY = (intAltoPantalla-intAlto)/2
	
		if (document.all || document.layers)
		{
			intAnchoPantalla = screen.availWidth
			intAltoPantalla = screen.availHeight
		}
		window.open(strUrl, null, 'scrollbars=yes, location=yes, menubar=yes, status=no, titlebar=yes, toolbar=yes, resizable=yes, width='+ intAncho+', height='+ intAlto + ', left=' + intPosicionX + ', top=' + intPosicionY)
	}
	else
		location.href=strUrl
}