function MM_openBrWindow(url, winName, widthIE, heightIE, widthNS, heightNS, resizable, menubar, toolbar, loc, scrollbars, status) {
	var isIE = (document.all ? true : false);
	var isNS = (document.layers ? true : false);
	var offsetY = 0;

	var features = '';

	if (menubar=='yes') {
		offsetY += 30;
	}

	if (toolbar=='yes') {
		offsetY += 15;
	}

	if (loc=='yes') {
		offsetY += 15;
	}
	
	if (status=='yes') {
		offsetY += 10;
	}

	if (isNS) {
		features += 'width=' + widthNS;
		features += ',height=' + heightNS;
		features += ',screenX=' +  Math.round( (screen.availWidth - widthIE) / 2 );
		features += ',screenY=' +  Math.round( (screen.availHeight - heightIE) / 2 - offsetY);
	} else {
		features += 'width=' + widthIE;
		features += ',height=' + heightIE;
		features += ',left=' +  Math.round( (screen.availWidth - widthIE) / 2 );
		features += ',top=' +  Math.round( (screen.availHeight - heightIE) / 2  - offsetY);
	}

	features += ',resizable=' + resizable;	
	features += ',menubar=' + menubar;
	features += ',toolbar=' + toolbar;
	features += ',location=' + loc;
	features += ',scrollbars=' + scrollbars;
	features += ',status=' + status;

	window.open(url, winName, features);
}

function ejecutoFlash(pagina, parametro, popup, interno, seguro, ancho, alto, linkString, miUrl, destino)
{
  var link = '';
  if (parametro!='' && interno && !seguro)
    link = pagina + '?' + linkString + '&' + parametro;
  else if (parametro!='' && interno && seguro)
    link = miUrl + pagina + '?' + linkString + '&' + parametro;
  else if (parametro!='' && !interno)
    link = pagina + '?' + parametro;
  else 
    link = pagina;
  if (popup)
  {
    MM_openBrWindow(link, 'popupLinkFlash', ancho, alto, ancho, alto, 'no', 'no', 'no', 'no', 'yes', 'no');
  }
  else
  {
    if (destino=="_parent" || destino=="parent")
    {
      window.parent.location.href=link;
    }
    else
    {
      window.location.href=link;
    }
  }
}