// JavaScript Document

function val_mail(contacto)
{
	 if(contacto.correo.value.indexOf("@") != "-1" && 
		contacto.correo.value.indexOf(".") != "-1" &&
		contacto.correo.value != " ")
		return true;
	else
		return false;
}
function send(contacto)
{
	if(contacto.nombre.value == "")
		{
		alert("Debe ingresar su Nombre");
		return false;
		}
	if(contacto.edad.value == "")
		{
		alert("Debe ingresar su edad");
		return false;
		}
	if(contacto.ciudad.value == "")
		{
		alert("Debe ingresar el nombre de la Ciudad");
		return false;
		}
	if(contacto.correo.value == "" || !val_mail(contacto))
		{		
		alert("Debe ingresar un E-Mail valido");
		return false;
		}
	if(contacto.telefono.value == "")
		{
		alert("Debe ingresar su numero de Telefono");
		return false;
		}	
	if(contacto.pais.value == "")
		{
		alert("Debe seleccionar un Pais");
		return false;
		}
	if(contacto.seo.value == "NA")
		{
		alert("Por favor diganos como nos encontro");
		return false;
		}
	if(contacto.tratamiento.value == "NA")
		{
		alert("Por favor seleccione un tratamiento");
		return false;
		}
	if(contacto.comentario.value == "")
		{
		alert("Debe ingresar su Comentario.");
		return false;
		}
	else 
	 	{	
		alert("Se van a enviar sus datos.");
		return true;
		}
}
