function AbrirVentana(url, width, height, titulo, parms)
{
		var left = Math.floor((screen.width - width) / 2);
		var top = Math.floor((screen.height - height) / 2);
		var winParms = "top=" + top + ",left=" + left + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height;
	 
		if (parms)
		{
				winParms += "," + parms;
		}
		var win = window.open(url, titulo, winParms);
	 
		if (parseInt(navigator.appVersion) >= 4)
		{
				win.window.focus();
		}
	 
		return win;
}

function comprobar()
{
    var email = document.getElementById("email");
    
    if (email.value.length == 0)
    {
        alert("Atención: debe indicar su dirección de correo electrónico para realizar el envío de contacto.");
        return false;
    }
    
    return true;
}

function linkSolapa(url)
{
    location.href = url;
}

function borrarMin()
{
    for (var x = 1; x < 7; x++)
    {
        var solapax = "Solapa" + x;
        var lnk = "lnk" + solapax;

        SalirMin(document.getElementById(solapax), lnk);
    }    
}

function EntrarMin(solapa, enlace)
{
    borrarMin();
	solapa.style.backgroundColor = '#245C9E';
	solapa.style.backgroundImage = 'url()';
	document.getElementById(enlace).style.color = '#FFFFFF';
	solapa.style.cursor = 'pointer';
}

function SalirMin(solapa, enlace)
{
	solapa.style.backgroundImage = 'url(../img/educacion/bg_solapa_menu_off.gif)';
	document.getElementById(enlace).style.color = '#000066';
}

function ApareceMin(id)
{
	if (!document.getElementById) return false;
  	
  	fila = document.getElementById(id);
	
	if (fila.style.display != "")
	{
    	fila.style.display = ""; 
	} 
	else
	{
		fila.style.display = "none"; 
  	}
}
