function Login() {
	var Log = document.getElementById("login").style.visibility;
	
	if(Log == 'hidden') {
		document.getElementById("login").style.visibility = "visible";
	}
}
function cerrarLogin() {
	var Log1 = document.getElementById("login").style.visibility;
	
	if(Log1 == 'visible') {
		document.getElementById("login").style.visibility = "hidden";
	}
}
function ChequearLogin() {
	var LogUSU = document.getElementById("usuario").value;
	var LogCON = document.getElementById("contrasena").value;
	
	if (LogUSU == "" || LogCON == ""){
		window.alert("Error: Debe ingresar nombre de usuario y contraseña");
	} else {
		document.getElementById("entrar").submit();
	}
}
function cerrarError() {
	var Error1 = document.getElementById("error").style.visibility;
	
	if (Error1 == "visible") {
		document.getElementById("error").style.visibility = "hidden";
	} else {
		document.getElementById("error").style.visibility = "visible";
	}
}
function irA(pagina) {
	if (pagina == "Inicio") {
		window.location = "../";
	}
}

