function abrirVentana(URL,nombreVentana,caracteristicas) { //v2.0
	window.open(URL,nombreVentana,caracteristicas);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function getStyleById(id, style)
{
	var elm = document.getElementById(id);
	return getStyle(elm, style);
}

function getStyle(elm, style)
{
	if(typeof(document.defaultView) == 'object') return document.defaultView.getComputedStyle(elm, null).getPropertyValue(style);
	else if(elm.currentStyle) return elm.currentStyle[style];
}

function setStyleById(id, style, value)
{
	var elm = document.getElementById(id);
	setStyle(elm, style, value);
}

function setStyle(elm, style, value)
{
	elm.style[style] = value;
}

var nodespliega = false;
function despliega(num)
{
	if(nodespliega) {
	  nodespliega = false;
	  return;
	}
	var estilo = getStyleById("desple"+num, "display");
	if(estilo == "none")
		setStyleById("desple"+num, "display", "block");
	else
		setStyleById("desple"+num, "display", "none");
}
