


function check_FormPreguntanosRSC(){

	var msg;
	var doc;

	doc = document.getElementById("email");
	if(doc.value.length == 0){
		alert("El campo \"Email\" es obligatorio");
		doc.focus();
		return false;
	}
	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("consulta");
	if(doc.value.length == 0){
		alert("El campo \"Consulta\" 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("Debes aceptar la política de privacidad");
		doc[0].focus();
		return false;
	}
	return true;
}
