window.status="Vale Sul"

function toggleColor(objElement)
{
  if (objElement.className=='normal')
    objElement.className='focus';
  else
    objElement.className='normal';
}

function validar(Form) 

 {

   if ( document.form1.Nome.value.length <= 1 )
      { alert( "Informe seu Nome...")
    	document.form1.Nome.focus() 
	    return false 
	  }

	if (document.form1.E_mail.value == "") {
		alert("Informe seu e-mail.");
		document.form1.E_mail.focus();
		document.form1.E_mail.select();
		return false;
	} else {
		prim = document.form1.E_mail.value.indexOf("@")
		if(prim < 2) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("@",prim + 1) != -1) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf(".") < 1) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf(" ") != -1) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("zipmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("hotmeil.com") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf(".@") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("@.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf(".com.br.") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("/") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("[") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("]") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("(") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf(")") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
		if(document.form1.E_mail.value.indexOf("..") > 0) {
			alert("O e-mail informado parece não estar correto.");
			document.form1.E_mail.focus();
			document.form1.E_mail.select();
			return false;
		}
	}


   if ( document.form1.Duvida.value.length <= 1 )
      { alert( "Informe sua Dúvida...")
    	document.form1.Duvida.focus() 
	    return false; 
	  }

}
 


function Transforma_Minuscula(Texto)
 {
  var minuscula = Texto.value.toLowerCase()
  Texto.value = minuscula
 }

 function Transforma_Maiuscula(Texto)
 {
  var maiuscula = Texto.value.toUpperCase()
  Texto.value = maiuscula
 }

function Formata_Cep(e,src,mask) {
    if(window.event) { _TXT = e.keyCode; } 
    else if(e.which) { _TXT = e.which; }
    if(_TXT > 47 && _TXT < 58) { 
 var i = src.value.length; var saida = mask.substring(0,1); var texto = mask.substring(i)
 if (texto.substring(0,1) != saida) { src.value += texto.substring(0,1); } 
    return true; } else { if (_TXT != 8) { return false; } 
 else { return true; }
    }
}

function validaNumero()
 {
  var tecla = window.event.keyCode;
   if ((tecla != 8 ) && (tecla !=46) && (tecla !=13) && (tecla !=9))  //codigo da tabela ASCII Backspace=8 delete=46  enter=13 tab=9
    { if ((tecla < 48 ) || (tecla > 57))
       { if ((tecla < 96 ) || (tecla > 105))
          { event.returnValue = false; }
       }
    }
 } 

