function Validar_Login() {				//CONTROL_ACCESO.PHP
	var forma = document.frmLogin;
	if (forma.txtusuario.value == "" || forma.txtpassword.value == ""){
		alert("Favor de llenar ambos campos.");
		return false;
	}
	else {
		return true;
	}
}

function Validar_Ficha() {			//FICHA.PHP
	var forma = document.frmficha;
	if (forma.txtappat.value == "" || forma.txtapmat.value == "" || forma.txtnombre.value == "" || forma.txtCURP.value == ""){
		alert("Favor de llenar todos los campos.");
		return false;
	}
	else {
		return true;
	}
}

function Validar_Solicitud() {			//SOLICITUD.PHP
	var forma = document.frmsolicitud;
	if (forma.txtFecha.value == "" || forma.lstmunicipionac.value == "" || forma.lstescuelaproc.value == "" || forma.txtegreso.value == ""|| forma.txtcalle.value == "" || forma.txtno_dom.value == "" || forma.txtcolonia.value == "" || forma.txtmunicipiodom.value == "" || forma.txtemail.value == "" || forma.txtpadre.value == "" || forma.txtmadre.value == ""){
		alert("Favor de llenar mínimo los siguientes campos: fecha de nacimiento, lugar de nacimiento.");
		return false;
	}
	else {
		return true;
	}
}

function checkbox_checker(checkbox) {
	var checkbox_choices = 0;

	if (!(isNaN(checkbox.length))) {
		for (counter = 0; counter < checkbox.length; counter++) {
			if (checkbox[counter].checked)
				{ checkbox_choices = checkbox_choices + 1; }
		}
	} else {
		if (checkbox.checked) {
			checkbox_choices = 1;
		}
	}

	if (checkbox_choices == 0 )
	{
		return (true);
	}
	
	return (false);
}




