// JavaScript Document
function NavegaMenu(intOpcion)
{

	switch (intOpcion)
	{
		case 0:
			window.navigate("inicio.html");
			break;
		case 1:
			//banner.src = "images/banner_instalaciones.jpg"
			window.navigate("principal.htm");
			break;

		case 2:
			window.navigate("staffDocente.html");
			break;

		case 3:
			window.navigate("perfilEducativo.html");
			break;			

		case 4:
			window.navigate("especializaciones.html");
			break;			

		case 5:
			window.navigate("horariosAtencion.html");
			break;

		case 6:
			window.navigate("reglamento.html");
			break;

		case 7:
			window.navigate("promociones.asp");
			break;
		case 8:
			window.navigate("abanderados.asp");
			break;
		case 9:
			window.navigate("noticias.asp");
			break;
		case 10:
			window.navigate("promociones.asp");
			break;

/*

		Aquí va la opcion 11
*/	

		case 12:
			window.navigate("contactenos.html");
			break;

	}
}

function DeslizaSubMenu(flag)
{
	if (flag)
	{
		subMenu.style.display = ""
	}
	else
	{
		subMenu.style.display = "none"
	}
	
}


function contactos_valid(theForm)
{

if (theForm.nombres.value == "") { alert("Por favor, ingrese su Nombre");  theForm.nombres.focus(); return (false); }

if (theForm.asunto.value == "") { alert("Por favor, ingrese el asunto de su mensaje");  theForm.asunto.focus(); return (false); }

if (theForm.mensaje.value == "") { alert("Por favor, ingrese su mensaje");  theForm.mensaje.focus(); return (false); }


  var cadena = theForm.email.value;        
  var car = /^.+\@(\[?)[\w\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
  if (theForm.email.value == "")
   {
  alert("Por favor, Ingrese su email.")
  theForm.email.focus();
  return false;
  }
  if (!car.test(cadena)) {
  alert("" + cadena + " no es válida la dirección email!");
  theForm.email.select();
  theForm.email.focus();
  return false;
  }


  return (true);
}


function window_load()
{
 document.getElementById('subMenu').style.position = 'relative'
 document.getElementById('subMenu').style.top = '-339px'
 document.getElementById('subMenu').style.left = '-211px'
 document.getElementById('subMenu').style.display = 'none'

}



// -->

