/* Formulário de contato */
function checarContato() {

    with (document.contatos_form) {
        if (nome.value == "")  {
            alert('Digite seu Nome.');
            nome.focus();
            nome.select();
            return false;
        }
		
        if (mail.value == "")  {
            alert('Digite seu E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if ( (mail.value.indexOf("@") == -1) || (mail.value.indexOf(".") == -1) ){
            alert('Por favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }
        
		if (mail.value.indexOf("youreFmailhere") > -1){
            alert('Por favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if (mail.value.indexOf("\\") > -1){
            alert('Você esta usando caracteres ilegais.\nPor favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if (mail.value.indexOf("'") > -1){
            alert('Você esta usando caracteres ilegais.\nPor favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if (mail.value.indexOf("!") > -1){
            alert('Você esta usando caracteres ilegais.\nPor favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if ( (mail.value.indexOf(",") > -1) || (mail.value.indexOf(";") > -1) ){
            alert('Você esta usando caracteres ilegais.\nPor favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }

        if (mail.value.indexOf("?") > -1){
            alert('Você esta usando caracteres ilegais.\nPor favor, cheque o formato do E-mail.');
            mail.focus();
            mail.select();
            return false;
        }


        if (texto.value == "")  {
            alert('Digite sua Mensagem.');
            texto.focus();
            texto.select();
            return false;
        }

        if (captcha.value == "")  {
            alert('Digite o Código de Segurança.');
            captcha.focus();
            captcha.select();
            return false;
        }
		


    }
}