function verifPassword()
{
var agregarForm = document.getElementById("agregarUsuarioForm");

if (agregarForm.usuario.value == "")
	{
    alert("Debe ingresar un usuario.");
    return false;
    }
if (agregarForm.nivel.value == "")
	{
    alert("Debe seleccionar un nivel.");
    return false;
    }
if (agregarForm.clave.value == "")
	{
    alert("Debe ingresar una clave.");
    return false;
    }
if (agregarForm.confirmar_clave.value == "")
	{
    alert("Debe ingresar la clave de confirmacion.");
    return false;
    }
if (agregarForm.clave.value != agregarForm.confirmar_clave.value)
	{
    alert("La clave es distinta a la clave de confirmacion.");
    return false;
    }	
agregarForm.aceptar_usuario.value = 1;
agregarForm.submit();
}

