function CmpAlta()
{

        if ((document.frmAlta.txtName.value.length == 0))
            {
              alert("Debe rellenar los campos obligatorios.");
            }
        else
            {
              document.frmAlta.submit();
            }
}


