
function EnviarConsulta(idPais)
{
	var ok = true;
	if (document.getElementById("txtContactoNombre").value=="")
	{
		alert(mensajes[12]);
		document.getElementById("txtContactoNombre").focus();
		ok = false;	
	}

	if (ok && document.getElementById("txtContactoEMail").value=="")
	{
		alert(mensajes[13]);
		document.getElementById("txtContactoEMail").focus();
		ok = false;	
	}
	
	if(ok && !ValidarMail(document.getElementById("txtContactoEMail").value))
	{
		alert(mensajes[14]);
		document.getElementById("txtContactoEMail").focus();
		ok=false;
	}
	
	if (ok && document.getElementById("txtAreaComentarios").value=="")
	{
		alert(mensajes[15]);
		document.getElementById("txtAreaComentarios").focus();
		ok = false;	
	}
	
	if(ok)
	{
		Navegar("./FrmConsulta.aspx",{intPaso: "E", idPais: idPais, Nombre: document.getElementById("txtContactoNombre").value, EMail: document.getElementById("txtContactoEMail").value, Telefono: document.getElementById("txtContactoTelefono").value, Comentario: document.getElementById("txtAreaComentarios").value});
	}
}

function LimpiarConsulta()
{
	document.getElementById("txtContactoNombre").value="";
	document.getElementById("txtAreaComentarios").value="";
}
