function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindowScreen(theURL,winName,features) { //v2.0
	width = screen.availWidth;
	height = screen.availHeight;
	hnd = window.open(theURL,winName,features);
	hnd.moveTo(parseInt((screen.availWidth - width) / 2), parseInt((screen.availHeight - height) / 4));
	if (window.focus) {hnd.focus()}
	//scrollbars=0,type=fullWindow,fullscreen=yes,
}


var DHTML = (document.getElementById || document.all || document.layers);

// Utilizo la propiedad display del style, y no la visibility ya que queremos
// que el espacio se "compacte" al ocultar la capa
//
// Obtenido a partir del menú lateral de: http://www.quirksmode.org/
// 
// Para reutilizarlo atención al fixIEBug, requiere una capa con id defeatIEBug
// en la página, aunque no he comprobado si es necesario

function showDiv(name){
	if (!DHTML) return;

	if (name){
		var x = getObjSytle(name);
		x.display = 'block';
	}
	fixIEBug();
}

function hideDiv(name){
	if (!DHTML) return;

	if (name){
		var x = getObjSytle(name);
		x.display = 'none';
	}
	fixIEBug();
}

function getObjSytle(name){
  if (document.getElementById){
    return document.getElementById(name).style;
  }
  else if (document.all){
    return document.all[name].style;
  }
  else if (document.layers){
    return document.layers[name];
  }
  else return false;
}

function fixIEBug()
{
	/* Defeat IE6 fixed bug by opening and closing the last div */
	var x = document.getElementById('defeatIEBug');
	if(x){
		var currentStyle = x.style.display;
		var newStyle = (currentStyle == 'none') ? 'block' : 'none';
		x.style.display = newStyle;
		x.style.display = currentStyle;
	}
}
