function v_contato() {
	        with(document.contato) {
            if (nome.value == "") {
			alert("Digite seu nome!");
			nome.style.backgroundColor='yellow'
			nome.focus();
			return false; }
		    if (nome.value == " Digite aqui seu nome") {
			alert("Digite seu nome!");
            nome.focus();
			return false; }
            if (email.value == "") {
			alert("Digite seu e-mail!");
            email.style.backgroundColor='yellow'
            email.focus();
		    return false; }
            parte1 = email.value.indexOf("@");
            parte2 = email.value.indexOf(".");
            parte3 = email.value.length;
            if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)){
			alert("email inválido!");
            email.style.backgroundColor='yellow'
            email.focus();
		    return false; }
            /* if (assunto.value == "") {
			alert("Qual o assunto de sueu cantato?");
            asssunto.style.backgroundColor='yellow'
            assunto.focus();
			return false; } */
            if (msg.value == "") {
			alert("Digite sua mensagem!");
            msg.style.backgroundColor='yellow'
            msg.focus();
			return false; }

            ajaxForm('feedback','contato');

	        }
           }


function mascara(o,f){
    v_obj=o
    v_fun=f
    setTimeout("execmascara()",1)
}

function execmascara(){
    v_obj.value=v_fun(v_obj.value)
}

function telefone(v){
    v=v.replace(/\D/g,"")                 //Remove tudo o que não é dígito
    v=v.replace(/^(\d\d)(\d)/g,"($1) $2") //Coloca parênteses em volta dos dois primeiros dígitos
    v=v.replace(/(\d{4})(\d)/,"$1-$2")    //Coloca hífen entre o quarto e o quinto dígitos
    return v
}

