//Validaciones para el ASPX ActualizacionDatos
var nom = navigator.appName;

function vActualizacionDatos()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoidentificacion,"Seleccione el tipo de identificaci\u00F3n"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCedula,"Ingrese el numero de identificaci\u00F3n"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCedula,5,"Ingrese un numero de identificacion v\u00E1lido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudadExpedicion,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlGenero,"Seleccione el genero"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoMatricula,"Ingrese el numero de matr\u00EDcula"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direcci\u00F3n"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electr\u00F3nico"))
	MM_returnValue = false;
else if (TxtMayorCaracteres(document.FrmPrincipal._ctl0_texto_comentarios,500,"la Descripcion no puede tener mas de 500 caracteres"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

//Validaciones para el ASPX ActualizacionEgresadosDatos

function vActualizacionEgresadosDatos()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoIdentificacion,"Seleccione el tipo de identificacion"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIdentificacion,"Seleccione el número de identificacion"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el Departamento"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la Ciudad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidad,"Seleccione la Universidad"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Seleccione la fecha de grado"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlProfesion,"Seleccione la profesión"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoRadicacion,"Ingrese el número de radicación"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaRadicacion,"Seleccione la fecha de radicación"))
	MM_returnValue = false;	
else
	MM_returnValue = true;	

}

//Validaciones para el ASPX ActualizacionEgresadosArchivo


function vActualizacionEgresadosArchivo()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidadArchivo,"Seleccione la Universidad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_ddlHojas,"Seleccione la hoja del archivo de excel"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vActualizacionEgresadosArchivo1()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidadArchivo,"Seleccione la Universidad"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

//Validaciones para el ASPX CargueRegistraduria
function vCargueArchivo()
{
if(TextVacio(document.FrmPrincipal._ctl0_FlArchivo,"Ingrese el archivo"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}


//Validaciones para el ASPX ValidacionCedula
function vCedula()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoIdentificacion,"Seleccione el tipo de identificacion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIdentificacion,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtIdentificacion,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

//Validaciones para el ASPX SolicitudUsuarioCPNAA
function vSolicitudUsuarioCPNAA()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DDLBanco,"Seleccione el Banco"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoConsignacion,"Ingrese el numero de consignaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtValorConsignacion,"Ingrese el valor de la consignaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFecha,"Ingrese la fecha de consignaci\u00F3n"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

//Validaciones para el ASPX AutenticidadCertificado
function vAutenticidadCertificado()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtCodigoSeguridad,"Ingrese el codigo de seguridad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DDLTipoId,"Seleccione el tipo de identificacion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoidentificacion,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoidentificacion,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}
	
	
//Validaciones para el ASPX SolicitudMAtricula	
function vSolicitudMatricula(id)
{
if (id!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion,"Seleccione el deparatamento"))
		MM_returnValue = false;
else if (id!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlCiudadExpedicion,"Seleccione la ciudad"))
		MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlGenero,"Seleccione el G\u00E9nero"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoUniversidad,"Seleccione el tipo de universidad"))
	MM_returnValue = false;	
else if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidad,"Seleccione la universidad"))
	MM_returnValue = false;	
else if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2 && TextVacio(document.FrmPrincipal._ctl0_TxtUniversidad,"Ingrese la universidad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTitulo,"Seleccione la profesion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Seleccione la fecha de grado"))
	MM_returnValue = false;
else if(document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2 && TextVacio(document.FrmPrincipal._ctl0_TxtDocumento,"Ingrese los documentos del ministerio"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento1,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad1,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_FlDocumento,"Ingrese el documento"))
	MM_returnValue = false;
else
	MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?");	
}

function vModificacionMatricula(id)
{
if (DDLVacio(document.getElementById("DdlDepartamentoExpedicion"),"Seleccione el deparatamento"))
		MM_returnValue = false;
else if (DDLVacio(document.getElementById("DdlCiudadExpedicion"),"Seleccione la ciudad"))
		MM_returnValue = false;/*
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlGenero,"Seleccione el G\u00E9nero"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoUniversidad,"Seleccione el tipo de universidad"))
	MM_returnValue = false;	
else if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidad,"Seleccione la universidad"))
	MM_returnValue = false;	
else if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2 && TextVacio(document.FrmPrincipal._ctl0_TxtUniversidad,"Ingrese la universidad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTitulo,"Seleccione la profesion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Seleccione la fecha de grado"))
	MM_returnValue = false;
else if(document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2 && TextVacio(document.FrmPrincipal._ctl0_TxtDocumento,"Ingrese los documentos del ministerio"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento1,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad1,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_FlDocumento,"Ingrese el documento"))
	MM_returnValue = false;*/
else
	MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?");	
}

function vSolicitudMatriculaCPNAA(id)
{
if (id!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion,"Seleccione el deparatamento"))
	MM_returnValue = false;
else if (id!=2 && DDLVacio(document.FrmPrincipal._ctl0_DdlCiudadExpedicion,"Seleccione la ciudad"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlGenero,"Seleccione el G\u00E9nero"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoUniversidad,"Seleccione el tipo de universidad"))
	MM_returnValue = false;	
else if (DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidad,"Seleccione la universidad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTitulo,"Seleccione la profesion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Seleccione la fecha de grado"))
	MM_returnValue = false;
else if(document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2 && TextVacio(document.FrmPrincipal._ctl0_TxtDocumento,"Ingrese los documentos del ministerio"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento1,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad1,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtRadicacion,"Ingrese el n\u00FAmero de Radicaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_txtFechaRadicacion,"Ingrese la fecha de Radicaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_txtValor,"Ingrese el valor de la consignaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoConsignacion,"Ingrese el numero de consignaci\u00F3n"))
	MM_returnValue = false;					 
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlBanco,"Seleccione el Banco"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaPago,"Ingrese la fecha de consignacion"))
	MM_returnValue = false;	
else
	MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?");	
}


//Validaciones para el ASPX SolicitudDuplicadoTarjeta	
function vDuplicadoTarjeta()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if (DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion,"Seleccione el deparatamento"))
		MM_returnValue = false;
else if (DDLVacio(document.FrmPrincipal._ctl0_DdlCiudadExpedicion,"Seleccione la ciudad"))
		MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoMatricula,"Ingrese el numero de Matricula"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoUniversidad,"Seleccione el tipo de universidad"))
	MM_returnValue = false;	
else if (DDLVacio(document.FrmPrincipal._ctl0_DdlUniversidad,"Seleccione la universidad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTitulo,"Seleccione la profesion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento1,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad1,"Seleccione la ciudad"))
	MM_returnValue = false;	
else
	MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?");	
}


//Validaciones para el ASPX Licencia Temporal
function vLicenciaTemporal()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTipoidentificacion,"Seleccione el tipo de identificacion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCedula,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCedula,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtUniversidad,"Ingrese la Universidad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlTitulo,"Seleccione la profesion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Seleccione la fecha de grado"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDocumento,"Ingrese los documentos del ministerio"))
	MM_returnValue = false;		
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento1,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad1,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoconsignacion,"Ingrese el numero de consignacion"))
	MM_returnValue = false;
else
	MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?");	
}
//Si se selecciona cedula de extranjeria se deshabilitan las opciones de Departamento y Ciudad de Expedicion

function vTipoDocumento()
{
	if (document.FrmPrincipal._ctl0_DdlTipoidentificacion.value==2)
	{
		document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion.disabled=true;
		document.FrmPrincipal._ctl0_DdlCiudadExpedicion.disabled=true;
	}
	else if (document.FrmPrincipal._ctl0_DdlTipoidentificacion.value!=2)
	{
		document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion.disabled=false;
		document.FrmPrincipal._ctl0_DdlCiudadExpedicion.disabled=false;
	}
}

//Si selecciona Universidad Extranjera se oculta el DDLUniversidad y se visualiza una caja de texto

function vTipoUniversidad()
{
/*
	if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value==2)
	{
		document.FrmPrincipal._ctl0_TxtUniversidad.style.visibility="visible";
		document.FrmPrincipal._ctl0_TxtUniversidad.style.width=365;
		document.FrmPrincipal._ctl0_DdlUniversidad.style.visibility="hidden";
		document.FrmPrincipal._ctl0_DdlUniversidad.style.width=0;		
		document.FrmPrincipal._ctl0_TxtDocumento.disabled=false;		
	}
	else if (document.FrmPrincipal._ctl0_DdlTipoUniversidad.value!=2)
	{
		document.FrmPrincipal._ctl0_TxtUniversidad.style.visibility="hidden";
		document.FrmPrincipal._ctl0_TxtUniversidad.style.width=0;
		document.FrmPrincipal._ctl0_DdlUniversidad.style.visibility="visible";
		document.FrmPrincipal._ctl0_DdlUniversidad.style.width=365;
		document.FrmPrincipal._ctl0_TxtDocumento.value="";		
		document.FrmPrincipal._ctl0_TxtDocumento.disabled=true;		
	}*/
}

function vCargueDocumentos()
{
if(TextVacio(document.FrmPrincipal._ctl0_FlFotografia,"Ingrese la fotografia"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_FlDocumento,"Ingrese el documento de identidad"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_FlActa,"Ingrese el acta de grado"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_FlDiploma,"Ingrese el diploma de grado"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vCargueDocumentosDuplicadoTarjeta()
{
if(TextVacio(document.FrmPrincipal._ctl0_FlDocumento,"Ingrese el documento de identidad"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_FlFotografia,"Ingrese la fotografia"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_FlDenuncio,"Ingrese el acta de grado"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vUsuarioCPNAA()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtUsuario,"Ingrese el nombre de usuario"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtClave,"Ingrese la clave"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vQuejoso()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DDlTipoIdQuejosoNuevo,"Seleccione el tipo de identificacion"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vServicioCPNAA()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DDLServicios,"Seleccione el servicio"))
	MM_returnValue = false;	
else
	MM_returnValue = true;	
}

function vReportes()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlReportes,"Seleccione el reporte"))
	MM_returnValue = false;	
else
	MM_returnValue = true;	
}

function vArquitectoQueja()
{
	if(Ocultar(document.getElementById("Table7"),"Seleccione un profesional"))
	MM_returnValue = false;	
else
	MM_returnValue = true;
}

function vQuejosoQueja()
{
if(Ocultar(document.getElementById("Table28"),"Seleccione un Quejoso"))
	MM_returnValue = false;	
else
	MM_returnValue = true;
}
function vAbogadoQueja()
{
if(Ocultar(document.getElementById("TbDatosAbogado"),"Seleccione un Abogado"))
	MM_returnValue = false;	
else
	MM_returnValue = true;
}

function vQueja()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtFecha,"Ingrese la Fecha"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la ciudad"))
	MM_returnValue = false;	
else
	MM_returnValue = true;	
}

//Validaciones para el tipo de identificacion en el ascx ConsultarQueja.

function vCedulaProfesionalQueja()
{
if(TextVacio(document.FrmPrincipal._ctl0_Txtidentificacion,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_Txtidentificacion,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vCedulaQuejosoQueja()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}
function vCedulaAbogadoQueja()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtidentificacionAbogado,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtidentificacionAbogado,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}
//Validaciones para el ASPX ValidacionCedulaAbogado
function vCedulaAbogado()
{
if(DDLVacio(document.getElementById("DdlTipoidentificacion"),"Seleccione el tipo de identificacion"))
	MM_returnValue = false;	
else if(TextVacio(document.getElementById("Txtidentificacion"),"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.getElementById("Txtidentificacion"),5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vGrabarQuejoso()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtidentificacionQuejoso,5,"Ingrese un n\u00FAmero de identificaci\u00F3n valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el nombre del quejoso"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el apellido del quejoso"))
	MM_returnValue = false;
/*	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direccion del quejoso"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direcci\u00F3n valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del n\u00FAmero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el n\u00FAmero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un n\u00FAmero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direcci\u00F3n de correo"))
	MM_returnValue = false;
*/
else
	MM_returnValue = true;	
}
function vGrabarAbogado()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtidentificacionAbogado,"Ingrese el numero de identificacion"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtidentificacionAbogado,5,"Ingrese un numero de identificacion valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNombresAbogado,"Ingrese el nombre del abogado"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidoAbogado,"Ingrese el apellido del abogado"))
	MM_returnValue = false;
/*	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoMatricula,"Ingrese el numero de matricula"))
	MM_returnValue = false;
*/
else if(TxtMayorCaracteres(document.FrmPrincipal._ctl0_TxtObservaciones,500,"El contenido de las observaciones debe tener menos de 500 caracteres"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vApertura()
{
	if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaApertura,"Ingrese la fecha de apertura"))
		MM_returnValue = false;
	else
		MM_returnValue = true;	
}

function vBusquedaQ()
{
	if(TextVacio(document.FrmPrincipal._ctl0_TxtRadicacion,"Ingrese el parametro de busqueda"))
		MM_returnValue = false;
	else
		MM_returnValue = true;	
}


function vActuaciones()
{
if(DDLVacio(document.getElementById("DdlRemitido"),"Seleccione Remitido por"))
	MM_returnValue = false;	
else if (DDLVacio(document.getElementById("DdlTipoDocumento"),"Seleccione el tipo de documento"))
	MM_returnValue = false;	
else if(TextVacio(document.getElementById("TxtFecha"),"Seleccione la fecha"))
	MM_returnValue = false;
else if(TextVacio(document.getElementById("TxtDescripcion"),"Ingrese la descripcion"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vRadioButtonSancion()
{
var lIFrame = window.parent.document.getElementById("ifrInfoExterna");
var radio = document.getElementsByName("RblSancion");
var radio1 = document.getElementsByName("RblRemitir");
if (nom=="Microsoft Internet Explorer")
{
    if(radio[1].checked)
    {
		document.getElementById("TrTipoSancion").style.display = "block";
		document.getElementById("TrFechaDesde").style.display = "block";
		document.getElementById("TrFechaHasta").style.display = "block";
		document.getElementById("TrDocumentos").style.display = "block";
		document.getElementById("TrArchivos").style.display = "block";
		lIFrame.style.height= parseInt(lIFrame.style.height) + 145;
	}
    if(radio[2].checked)
    {
		document.getElementById("TrTipoSancion").style.display = "none";
		document.getElementById("TrFechaDesde").style.display = "none";
		document.getElementById("TxtFechaDesde").value = "";		
		document.getElementById("TrFechaHasta").style.display = "none";
		document.getElementById("TxtFechaHasta").value = "";
		document.getElementById("TrDocumentos").style.display = "none";
		document.getElementById("TrArchivos").style.display = "none";
		lIFrame.style.height=parseInt(lIFrame.style.height) - 145;
    }   
}
else
{
    if(radio[0].checked)   
    {
		document.getElementById("TrTipoSancion").style.display = "block";
		document.getElementById("TrFechaDesde").style.display = "block";
		document.getElementById("TrFechaHasta").style.display = "block";
		document.getElementById("TrDocumentos").style.display = "block";
		document.getElementById("TrArchivos").style.display = "block"; 
		lIFrame.style.height= parseInt(lIFrame.style.height) + 145;
	}
    if(radio[1].checked)
    {
		document.getElementById("TrTipoSancion").style.display = "none";
		document.getElementById("TrFechaDesde").style.display = "none";
		document.getElementById("TxtFechaDesde").value = "";		
		document.getElementById("TrFechaHasta").style.display = "none";
		document.getElementById("TxtFechaHasta").value = "";
		document.getElementById("TrDocumentos").style.display = "none";
		document.getElementById("TrArchivos").style.display = "none";
		lIFrame.style.height= parseInt(lIFrame.style.height) - 145;
    }   
}     
}

function vRadioButtonRemitir()
{
var radio = document.getElementsByName("RblRemitir");
var radio1 = document.getElementsByName("RblSancion");
var lIFrame = window.parent.document.getElementById("ifrInfoExterna");

if (nom=="Microsoft Internet Explorer")
{
    if(radio[1].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "block";
		document.getElementById("TrEntidadRemitir").style.display = "block";
		document.getElementById("TrObservacionesRemitir").style.display = "";
		lIFrame.style.height=parseInt(lIFrame.style.height) + 125;
	}
    if(radio[2].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "none";		
		document.getElementById("TrFechaRemitir").value = "";		
		document.getElementById("TrEntidadRemitir").style.display = "none";
		document.getElementById("TrEntidadRemitir").value = "";
		document.getElementById("TrObservacionesRemitir").style.display = "none";
		document.getElementById("TrObservacionesRemitir").value = "";
		lIFrame.style.height=parseInt(lIFrame.style.height) - 125;
    }   
}

else
{
    if(radio[0].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "block";
		document.getElementById("TrEntidadRemitir").style.display = "block";
		document.getElementById("TrObservacionesRemitir").style.display = "block";
		lIFrame.style.height=parseInt(lIFrame.style.height) + 125;
	}              
    if(radio[1].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "none";		
		document.getElementById("TrFechaRemitir").value = "";		
		document.getElementById("TrEntidadRemitir").style.display = "none";
		document.getElementById("TrEntidadRemitir").value = "";
		document.getElementById("TrObservacionesRemitir").style.display = "none";
		document.getElementById("TrObservacionesRemitir").value = "";
		lIFrame.style.height=parseInt(lIFrame.style.height) - 125;
    }   
}
}     

function vSancion()
{
if(TextVacio(document.getElementById("TxtFecha"),"Seleccione la fecha"))
	MM_returnValue = false;
else if(TextVacio(document.getElementById("TxtObservaciones"),"Ingrese las Observaciones"))
	MM_returnValue = false;
else if(TextVacio(document.getElementById("TxtFalta"),"Ingrese la Falta"))
	MM_returnValue = false;
else if (document.getElementById("TrTipoSancion").style.display == "block" && document.getElementById("DdlTipoSancion").value=="-1")
	{
	alert("Seleccione el Tipo de Sanci\u00F3n");
	document.getElementById("DdlTipoSancion").focus();
	MM_returnValue = false;
	}
else if (document.getElementById("TrFechaDesde").style.display == "block" && document.getElementById("TxtFechaDesde").value=="")
	{
	alert("Seleccione la fecha desde");	
	MM_returnValue = false;
	}
else if (document.getElementById("TrFechaHasta").style.display == "block" && document.getElementById("TxtFechaHasta").value=="")
	{
	alert("Seleccione la fecha hasta");	
	MM_returnValue = false;
	}
else if (document.getElementById("TrFechaRemitir").style.display == "block" && document.getElementById("TxtFechaRemision").value=="")
	{
	alert("Seleccione la fecha");		
	MM_returnValue = false;
	}
else if (document.getElementById("TrEntidadRemitir").style.display == "block" && document.getElementById("TxtEntidadRemitir").value=="")
	{
	alert("Ingrese la Entidad a remitir");	
	document.getElementById("TxtEntidadRemitir").focus();
	MM_returnValue = false;
	}
else if (document.getElementById("TrObservacionesRemitir").style.display == "block" && document.getElementById("TxtObservacionesRemitir").value=="")
	{
	alert("Ingrese las observaciones");	
	document.getElementById("TxtObservacionesRemitir").focus();
	MM_returnValue = false;
	}
else
	MM_returnValue = true;
}
//Validacion para el contacto con el usuario CPNAA
function vContactoCPNAA()
{
if(TextVacio(document.getElementById("TxtEmail"),"Ingrese la direccion de correo electronico"))
	MM_returnValue = false;
else if(TextVacio(document.getElementById("TxtComentario"),"Ingrese el contenido del correo"))
	MM_returnValue = false;
else if(TxtMayorCaracteres(document.getElementById("TxtComentario"),1000,"El contenido del mensaje debe tener menos de 1000 caracteres"))
	MM_returnValue = false;
else
{	
	MM_returnValue = true;	
}
}

//Validacion para actualizacion de Datos Ubicacion Profesional

function vUbicacionProfesional()
{
if(document.getElementById("cbActualizar").checked)
{
	if(DDLVacio(document.getElementById("DdlDepartamento"),"Seleccione el deparatamento"))
		MM_returnValue = false;
	else if(DDLVacio(document.getElementById("DdlCiudad"),"Seleccione la ciudad"))
		MM_returnValue = false;
	else if(TextVacio(document.getElementById("TxtDireccion"),"Ingrese la direccion"))
		MM_returnValue = false;
	else if(TxtMenorCaracteres(document.getElementById("TxtDireccion"),8,"Ingrese una direccion valida"))
		MM_returnValue = false;
	else if(TextVacio(document.getElementById("TxtIndicativo"),"Ingrese el indicativo del numero de telefono"))
		MM_returnValue = false;
	else if(TextVacio(document.getElementById("TxtNoTelefono"),"Ingrese el numero de telefono"))
		MM_returnValue = false;
	else if(TxtMenorCaracteres(document.getElementById("TxtNoTelefono"),7,"Ingrese un numero de telefono valido"))
		MM_returnValue = false;
	else if(TextVacio(document.getElementById("TxtPrefijoCelular"),"Ingrese el prefijo del numero de celular"))
		MM_returnValue = false;
	else if(TxtMenorCaracteres(document.getElementById("TxtPrefijoCelular"),3,"Ingrese un prefijo de celular valido"))
		MM_returnValue = false;
	else if(TextVacio(document.getElementById("TxtNoCelular"),"Ingrese el numero de celular"))
		MM_returnValue = false;
	else if(TxtMenorCaracteres(document.getElementById("TxtNoCelular"),7,"Ingrese un numero de celular valido"))
		MM_returnValue = false;	
	else if(TextVacio(document.getElementById("TxtEmail"),"Ingrese la direccion de correo electronico"))
		MM_returnValue = false;
	else
		MM_returnValue = confirm("Confirma el ingreso de la informacion registrada?. Tenga en cuenta que la informacion que el CPNAA le envie sera enviada a la direccion de correo registrada");	
}
else
{
	MM_returnValue = true;
}
}

function abrirPopUpCarne()
{
	//winLeft = (window.screen.width/4);
	//window.open("http://otto/CPNAAINFO/carnePrint.aspx?aux=1", "Carne","left=256,top=250,width=470, height=400, menubar=no, scrollbars=yes, resizable=no");
	//window.open('http://www.cpnaa.gov.co/CPNAAINFO/carnePrint.aspx?aux=1', 'Carn\u00E9', 'left=256,top=250,width=470, height=400, menubar=no, scrollbars=yes, resizable=no');
	//MM_returnValue = false;
}
function abrirPopUp(ruta,nombre)
{
	window.frames['ifrInfoExterna'].window.location.href = ruta;
	//window.open(ruta,nombre,"left=256,top=250,width=470, height=400, menubar=no, scrollbars=yes, resizable=no");
	//"window.open('http://www.cpnaa.gov.co/CPNAAINFO/carnePrint.aspx?aux=1', 'Carn\u00E9', 'left=256,top=250,width=470, height=400, menubar=no, scrollbars=yes, resizable=no');"+
	MM_returnValue = false;
}

function vInformes()
{
	if(DDLVacio(document.FrmPrincipal._ctl0_ddl_Informes,"Seleccione el tipo de informe"))
	MM_returnValue = false;
	else
	{	
		MM_returnValue = true;	
	}
}
function vReporteMatricula()
{
	if(document.FrmPrincipal._ctl0_TxtNoIdentificacion.value=="" && document.FrmPrincipal._ctl0_TxtNombres.value=="" && document.FrmPrincipal._ctl0_TxtApellidos.value=="" && document.FrmPrincipal._ctl0_TxtNomatricula.value=="")
		{
			alert("Ingrese un criterio de busqueda");
			MM_returnValue = true;
		}
	else
		MM_returnValue = true;
}
//Validaciones para el detalle de la solicitud de duplicado de matricual por el usuario CPNAA.

function vDetalleDuplicadoCPNAA()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNoRadicacion,"Ingrese el n\u00FAmero de Radicaci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFecha,"Ingrese la Fecha de Radicaci\u00F3n"))
	MM_returnValue = false;	
else
	MM_returnValue = true;	
}


//Valida el RadioButton de la pagina Entrega Duplicado Tarjeta Profesional
function vRadioButtonEntregaDuplicadoTarjetaPro(rbl)
{

if (nom=="Microsoft Internet Explorer")
{
    if(document.FrmPrincipal._ctl0_RblAutoriza_0.checked)
    {
		document.getElementById("TrNombre").style.display = "block";		
		document.getElementById("trCedula").style.display = "block";
		document.getElementById("TrTelefono").style.display = "block";		
	}
    if(document.FrmPrincipal._ctl0_RblAutoriza_1.checked)
    {
		document.getElementById("TrNombre").style.display = "none";
		document.getElementById("trCedula").style.display = "none";
		document.getElementById("TrTelefono").style.display = "none";
		document.FrmPrincipal._ctl0_TxtNombre.value="";
		document.FrmPrincipal._ctl0_TxtCedula.value="";
		document.FrmPrincipal._ctl0_TxtIndicativo.value="";
		document.FrmPrincipal._ctl0_TxtNoTelefono.value="";
    }   
}
/*
else
{
    if(radio[0].checked)
    {
		document.getElementById("TrNombre").style.display = "block";
		document.getElementById("trCedula").style.display = "block";
		document.getElementById("TrTelefono").style.display = "block";	
	}              
    if(radio[1].checked)
    {
		document.getElementById("TrNombre").style.display = "none";
		document.getElementById("trCedula").style.display = "none";
		document.getElementById("TrTelefono").style.display = "none";
    }   
}
*/
}     

//Validacion para la pagina de entrega del duplicado de Tarjeta Profesional.
function vEntregaDuplicadoTarjetaPro()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNoPlastico,"Ingrese el N\u00FAmero de pl\u00E1stico"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFecha,"Ingrese la fecha de entrega"))
	MM_returnValue = false;	
//if (nom=="Microsoft Internet Explorer")
//{
else if(document.FrmPrincipal._ctl0_RblAutoriza_0.checked)
{
	if (TextVacio(document.FrmPrincipal._ctl0_TxtNombre,"Ingrese el nombre de la persona autorizada"))
		MM_returnValue = false;
	else if (TextVacio(document.FrmPrincipal._ctl0_TxtCedula,"Ingrese el N\u00FAmero de identificaci\u00F3n"))
		MM_returnValue = false;
	else if (TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo"))
		MM_returnValue = false;
	else if (TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el n\u00FAmero de tel\u00E9fono"))
		MM_returnValue = false;
	else
		MM_returnValue = true;
}
else
	MM_returnValue = true;

/*
else
{
    if(radio[0].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "block";
		document.getElementById("TrEntidadRemitir").style.display = "block";
		document.getElementById("TrObservacionesRemitir").style.display = "block";
		lIFrame.style.height=parseInt(lIFrame.style.height) + 125;
	}              
    if(radio[1].checked)
    {
		document.getElementById("TrFechaRemitir").style.display = "none";		
		document.getElementById("TrFechaRemitir").value = "";		
		document.getElementById("TrEntidadRemitir").style.display = "none";
		document.getElementById("TrEntidadRemitir").value = "";
		document.getElementById("TrObservacionesRemitir").style.display = "none";
		document.getElementById("TrObservacionesRemitir").value = "";
		lIFrame.style.height=parseInt(lIFrame.style.height) - 125;
    }   
}
*/
}     
function vDuplicadoTarjetaPro1()
{
if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el Departamento"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la Ciudad"))
	MM_returnValue = false;
else
	MM_returnValue = true;
}

/*Validaciones para el Servicio*/
function vServcio()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNombre,"Ingrese el Nonmbre del Servicio"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtAno,"Ingrese el a\00f1o de vigencia"))
	MM_returnValue = false;
else
	MM_returnValue = true;
}

function vServcio1()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNombre1,"Ingrese el Nonmbre del Servicio"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtAno1,"Ingrese el a\00f1o de vigencia"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DDLTipoProfesion,"Seleccione el Tipo de Profesion"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtValor,"Ingrese el Valor del Servicio"))
	MM_returnValue = false;
else
	MM_returnValue = true;
}

/*Fin validacion Servicio*/

/*Validacion para la paggina GenerarResolucionMatricula*/
function vGenerarResolucionMatricula()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNoResolucion,"Ingrese el N\u00FAmero de Resoluci\u00F3n"))
	MM_returnValue = false;
else
	MM_returnValue = true;
}


function vActualizacionDatosProfesionalTodos()
{
if(TextVacio(document.FrmPrincipal._ctl0_TxtNombres,"Ingrese el Nombre"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtApellidos,"Ingrese el Apellido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCedula,"Ingrese el numero de identificaci\u00F3n"))								        
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCedula,5,"Ingrese un numero de identificacion v\u00E1lido"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamentoExpedicion,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudadExpedicion,"Seleccione la ciudad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_ddlSedeUniversidad,"Seleccione la universidad"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlGenero,"Seleccione el genero"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaGrado,"Ingrese la fecha de grado"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_ddlProfesion,"Seleccione la profesi\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtMatricula,"Ingrese el numero de matr\u00EDcula"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtCodigoResolucion,"Ingrese el C\u00F3digo de resoluci\u00F3n"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtFechaResolucion,"Ingrese la fecha de resoluci\u00F3n"))
	MM_returnValue = false;
else if(DDLVacio(document.FrmPrincipal._ctl0_ddlEstado,"Seleccione el estado del profesional"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlDepartamento,"Seleccione el deparatamento"))
	MM_returnValue = false;	
else if(DDLVacio(document.FrmPrincipal._ctl0_DdlCiudad,"Seleccione la ciudad"))
	MM_returnValue = false;	
else if(TextVacio(document.FrmPrincipal._ctl0_TxtDireccion,"Ingrese la direcci\u00F3n"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtDireccion,8,"Ingrese una direccion valida"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtIndicativo,"Ingrese el indicativo del numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoTelefono,"Ingrese el numero de tel\u00E9fono"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoTelefono,7,"Ingrese un numero de tel\u00E9fono valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtPrefijoCelular,"Ingrese el prefijo del numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtPrefijoCelular,3,"Ingrese un prefijo de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtNoCelular,"Ingrese el numero de celular"))
	MM_returnValue = false;
else if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCelular,7,"Ingrese un numero de celular valido"))
	MM_returnValue = false;
else if(TextVacio(document.FrmPrincipal._ctl0_TxtEmail,"Ingrese la direccion de correo electr\u00F3nico"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function vActualizacionDatosProfesional()
{
if(TxtMenorCaracteres(document.FrmPrincipal._ctl0_TxtNoCedula,5,"Ingrese un numero de identificacion v\u00E1lido"))
	MM_returnValue = false;
else
	MM_returnValue = true;	
}

function CartasMatricula()
{
	if(DDLVacio(document.FrmPrincipal._ctl0_ddlResolucionCartas,"Seleccione la Resoluci\u00F3n"))
		MM_returnValue = false;
	else
	MM_returnValue = true;	
}
function vRadioButtonTipoPago(obj)
{
try
{

if(document.FrmPrincipal._ctl0_RblTipoPago_0.checked)
{	
	document.getElementById("TbPago").style.display = "block";
	document.getElementById("TbConsignacion").style.display = "none";
}
else
{
	document.getElementById("TbPago").style.display = "none";
	document.getElementById("TbConsignacion").style.display = "block";
}


}
catch(err)
{}
}
