// Verifica quantos caracteres foram digitados, exibe quantidade de
// caracteres restante e não permite que estoure o limite
function VerificaTamanho(target, max, ondeMostra) 
{
	var StrLen;
	var corte;
	var nome;
	var adicional; 	
	StrLen = 0;
	corte = StrLen;
	if (target.length != "" )
	{
		StrLen = StrLen + target.value.length;
	}
	if (StrLen == 1 && target.value.substring(0,1) == " ")
	{ 
        target.value = "";
		StrLen = StrLen - 1;
    }
    if (StrLen > max) 
	{
		target.value = target.value.substring(0,max-corte);
		StrLen = StrLen - 1;
	}
 	document.getElementById(ondeMostra).innerHTML = max - StrLen;
}