function Aviso() {				//DEFAULT.PHP
	alert("AVISO IMPORTANTE: \n\n SI REALIZASTE EL PROCESO DE INSCRIPCION EN SEMESTRES ANTERIORES, TU FICHA DE REGISTRO SERA CANCELADA. \n\n SI ESTA ES TU SITUACION TE RECOMENDAMOS QUE ACUDAS PERSONALMENTE A LAS OFICINAS DEL TECNOLOGICO A REVISAR TU ESTADO. \n\n GRACIAS.");
	return true;
}

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_Carrera() {				//MODCARRERA.PHP
	var forma = document.frmCarrera;
	if (forma.txtficha.value == ""){
		alert("Favor de capturar la ficha.");
		return false;
	}
	else {
		return true;
	}
}

function Validar_Ficha() {			//FICHA.PHP
	var forma = document.frmficha;
	if (forma.txtappat.value == ""  || forma.txtnombre.value == "" || forma.txtCURP.value == ""){
		alert("Favor de llenar todos los campos.");
		return false;
	}
	else {
		return true;
	}
}

function Validar_Ficha2()
{
	var forma = document.frmFicha2;
	if (forma.txtFicha.value == "")
	{
		alert("Favor de capturar la ficha.");
		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);
}





