function validar_form_login(form)
{
	with (form) 
	{
		if (usuario.value == "") {
		  alert("Introduzca su nombre de usuario");
		  usuario.focus();
		  return false;
		}
		
		if (clave.value == "") {
		  alert("Introduzca su clave de ingreso");
		  clave.focus();
		  return false;
		}		

	}
}

function validar(campo)
{
	if (campo.value == "") {
	  alert("Introduzca el valor");
	  campo.focus();
	  return false;
	}
}

function validar_form_nueva_clave(form)
{
	with (form) 
	{
		if (nombre.value == "") {
		  alert("Introduzca su nombre");
		  nombre.focus();
		  return false;
		}
		
		if (email.value == "") {
		  alert("Introduzca su e-mail");
		  email.focus();
		  return false;
		}
		
		if (telefono.value == "") {
		  alert("Introduzca su teléfono");
		  telefono.focus();
		  return false;
		}			

	}	
}

/*function Desplegar(id) {
	var spanid = document.getElementById(id);
	if (spanid) 
		{
			spanid.style.display = "inline";
			document.getElementById("flecha").style.display = "none";
			document.getElementById("flecha2").style.display = "inline";
		}
}

function Replegar(id) {
	var spanid = document.getElementById(id);
	if (spanid) 
		{
			spanid.style.display = "none";
			document.getElementById("flecha").style.display = "inline";
			document.getElementById("flecha2").style.display = "none";
		}
}*/

function Desplegar(id) {
	var spanid = document.getElementById(id);
	if (spanid) 
		{
			spanid.style.display = "inline";
		}
}

function Replegar(id) {
	var spanid = document.getElementById(id);
	if (spanid) 
		{
			spanid.style.display = "none";
		}
}

function confirmar()
{
  alert("Seguro?");
  return false;
}
