function validar(form2)
{
	var apaterno = document.form2.apaterno.value
	if (apaterno==""){
	alert("Ingrese su apellido paterno");
	document.form2.apaterno.focus()
	return false
	}
	var amaterno = document.form2.amaterno.value
	if (amaterno==""){
	alert("Ingrese su apellido materno");
	document.form2.amaterno.focus()
	return false
	}
	var nombre = document.form2.nombre.value
	if (nombre==""){
	alert("Ingrese su nombre");
	document.form2.nombre.focus()
	return false
	}
	var rut = document.form2.rut.value
 	if (rut==""){
	alert("Ingrese su RUT");
	document.form2.rut.focus()
	return false
	}
	var fnac = document.form2.fnac.value
	if (fnac==""){
		alert("Ingrese su fecha de nacimiento");
		document.form2.fnac.focus()
		return false
	}
	var fijonum = document.form2.fijonum.value
	if (fijonum==""){
			alert("Ingrese su numero de telefono");
			document.form2.fijonum.focus()
			return false
	}
	var email=document.form2.email.value
	if (email==""){
		alert("Ingrese su email");
		document.form2.email.focus()
		return false
	}else{
			if (document.form2.email.value.indexOf('@', 0) == -1 || document.form2.email.value.indexOf('.', 0) == -1){ alert("Ingrese correctamente su mail. Ejemplo: nombre@dominio.cl");
				document.form2.email.focus()
			return false
			}
	}
	var fono = document.form2.fono.value
	if (fono==""){
			alert("Ingrese su numero de telefono");
			document.form2.fono.focus()
			return false
	}

var tmptxt = document.form2.tmptxt.value
if (tmptxt==""){
	alert("Ingrese el captcha");
	document.form2.tmptxt.focus()
	return false
	}	

}



