


function check_EnviarCV(){

	var msg;
	var doc;

	doc = document.getElementById("nombre");
	if(doc.value.length == 0){
		alert("El campo \'Nombre\' es obligatorio");
		doc.focus();
		return false;
	}
	doc = document.getElementById("apellidos");
	if(doc.value.length == 0){
		alert("El campo \'Apellidos\' es obligatorio");
		doc.focus();
		return false;
	}
	doc = document.getElementById("zona");
	if(doc.value.length == 0){
		alert("El campo \'Zona\' es obligatorio");
		doc.focus();
		return false;
	}
	doc = document.getElementById("modalidad");
	if(doc.value.length == 0){
		alert("El campo \'Modalidad\' es obligatorio");
		doc.focus();
		return false;
	}
	doc = document.getElementById("interes");
	if(doc.value.length == 0){
		alert("El campo \'Área de interés\' es obligatorio");
		doc.focus();
		return false;
	}
	doc = document.getElementById("email");
	if(doc.value.length > 0){
		var regEx = /^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,4})$/;
		if(!regEx.test(doc.value)){
			alert("El campo \'Email\' no tiene el formato correcto");
			doc.focus();
			return false;
		}
	}
	doc = document.getElementById("cv");
	if(doc.value.length == 0){
		alert("El campo \'Subir Archivo\' es obligatorio");
		doc.focus();
		return false;
	}
	var checked = 0;
	doc = document.getElementsByName("politica");
	for(var i=0;i<doc.length && checked==0;i++){
		if(doc[i].checked) checked++;
	}
	if(checked == 0){
		alert("El campo \'Acepto la Política de Privacidad\' es obligatorio");
		doc[0].focus();
		return false;
	}
	return true;
}
