function checkdata() {
	with(document.contato) {	
			if (nome.value == "") {
				alert("Por favor, digite seu nome.");
				nome.focus();
				return false;
			}
		 	if ((email.value == "") || (!valida_mail(email.value))){
				alert("Por favor, digite um e-mail válido.");
				email.focus();
				return false;
			}
			if (telefone.value == "") {
				alert("Por favor, digite seu telefone.");
				telefone.focus();
				return false;
			}
			if (mensagem.value == "") {
				alert("Por favor, digite sua mensagem.");
				mensagem.focus();
			return false;
		}
    submit();
	}
}

function valida_mail(valor) {
	prim = valor.indexOf("@")
	if(prim < 2) return false;
	if(valor.indexOf("@",prim + 1) != -1) return false
	if(valor.indexOf(".") < 1) return false;
	if(valor.indexOf("zipmeil.com") > 0) return false;
	if(valor.indexOf("hotmeil.com") > 0) return false;
	if(valor.indexOf(".@") > 0) return false;
	if(valor.indexOf("@.") > 0) return false;
	if(valor.indexOf(".com.br.") > 0) return false;
	if(valor.indexOf("/") > 0) return false;
	if(valor.indexOf("[") > 0) return false;
	if(valor.indexOf("]") > 0) return false;
	if(valor.indexOf("(") > 0) return false;
	if(valor.indexOf(")") > 0) return false;
	if(valor.indexOf("..") > 0) return false;
	if(valor.indexOf(",") > 0) return false;
	return true;
}