<!--
// onBlur="return validaitem(this,'s','3','20','E-mail');"
// Esta função não se modifica. É padrão para todos os forms.
function validaitem(input,campo,vmin,vmax,nome){
	var erro = 1; 
	if (campo == 's'){
		if (input.value == ""){
   			alert("O campo \'" + nome + "\' é obrigatório");
			erro = 0;
		}
	}
	if (input.value != ""){
		if (vmin != ''){
  			if (input.value.length < vmin){
    			alert("Digite no mínimo " + vmin + " caracteres no campo \'" + nome + "\'");
				erro = 0;
			}
  		}
  		if (vmax != ''){
  			if (input.value.length > vmax){
    			alert("Digite no máximo " + vmax + " caracteres no campo \'" + nome + "\'");
				erro = 0;
  			}
  		}
	}

	if (erro == 0){
		input.focus();
		return (false);
	}
	else{
		return (true);
	}
}
//-->
