function validar_notimail(theForm) {

	if (theForm.nombre.value == ""){
		alert("Su nombre y apellido es un dato requerido.");
		theForm.nombre.focus();
		return (false);
	}
	if (theForm.email.value == ""){
		alert("Su direccion de correo electronico es un dato requerido.");
		theForm.email.focus();
		return (false);
	}
	email = theForm.email.value;
	email = email.toLowerCase();			

	if ( email.search("@") != -1 ){
	}
	else{
		alert("La direccion de correo electronico ingresada no es valida");
		theForm.email.focus();
		return (false);				
	}
	if (theForm.localidad.value == ""){
		alert("La localidad es un dato requerido.");
		theForm.localidad.focus();
		return (false);
	}
	return (true);
}

function validar_curriculum(theForm) {

	if (theForm.datos_personales.value == ""){
		alert("Sus datos personales son requeridos.");
		theForm.datos_personales.focus();
		return (false);
	}
	

	if (theForm.formacion_academica.value == ""){
		alert("Su formación académica es requerida.");
		theForm.formacion_academica.focus();
		return (false);
	}
	
	if (theForm.cursos.value == ""){
		alert("Los cursos y seminarios realizados son requeridos.");
		theForm.cursos.focus();
		return (false);
	}
	
	if (theForm.experiencia_laboral.value == ""){
		alert("Su experiencia laboral es requerida.");
		theForm.experiencia_laboral.focus();
		return (false);
	}
	
	if (theForm.idiomas.value == ""){
		alert("Sus conocimientos sobre idiomas son requeridos.");
		theForm.idiomas.focus();
		return (false);
	}
	
	if (theForm.informatica.value == ""){
		alert("Sus conocimientos sobre informática son requeridos.");
		theForm.informatica.focus();
		return (false);
	}
	
	if (theForm.referencias.value == ""){
		alert("Sus referencias personales son requeridas.");
		theForm.referencias.focus();
		return (false);
	}
	
	if (theForm.trabajos.value == ""){
		alert("Sus trabajos actual y/o anteriores son requeridos.");
		theForm.trabajos.focus();
		return (false);
	}

	
return (true);
}


/*COMENTARIO NOTICIA AMPLIADA*/
function validar_comentario(theForm){

	 if (theForm.nombre.value == ""){
		alert("El nombre es un dato requerido");
		theForm.nombre.focus();
		return (false);
	}
	
			
	if (theForm.email.value == ""){
		alert("La dirección de correo es un dato requerido.");
		theForm.email.focus();
		return (false);
	}

	email = theForm.email.value;
	email = email.toLowerCase();			

	if ( email.search("@") != -1 ){
	}
	else{
		alert("La dirección de correo ingresada no es válida.");
		theForm.email.focus();
		return (false);				
	}


	if (theForm.comentario.value == ""){
		alert("El comentario es un dato requerido.");
		theForm.comentario.focus();
		return (false);
	}
	
	if (theForm.guess.value == ""){
		alert("El codigo de seguridad es un dato requerido.");
		theForm.comentario.focus();
		return (false);
	}

	return (true);

}
/*FIN COMENTARIO NOTICIA AMPLIADA*/

/*BUSCADOR HISTORIAL*/
function validar_buscador(theForm) {

	if (theForm.opcion_busqueda[0].checked){
		if (theForm.texto.value == ""){
			alert("No ha ingresado un texto para buscar.");
			theForm.texto.focus();
			return (false);
  		}
	}
	else {
		if (theForm.fecha.value == ""){
			alert("No ha ingresado una fecha para buscar.");
			theForm.fecha.focus();
			return (false);
		}
		return (true);
	}
 }

/*FIN BUSCADOR HISTORIAL*/
