function isEmpty(pCampo)
{
	if ((document.inicio_aut.pCampo.value == null) || (trim(document.inicio_aut.pCampo).value == ''))
		return true;
	else
		return false;		
}


function soNumero(pValor)
{		
	if(!isEmpty(pValor))
	{
		var vValor = pValor.rawValue;
		//--SOMENTE NÚMEROS, COM O CARACTER ESPECIAL "+"
		var regExp = /[^\60\61\62\63\64\65\66\67\68\69\70\71\53]/g;		
		if (regExp.test(vValor))
		{
			alert("Atenção, número inválido. Favor digitar novamente.","Atenção", 1,0);
			pValor.rawValue = "";
			xfa.host.setFocus(pValor);
		}			
	}	
}


function soLetras(pValor)
{		
	if(!isEmpty(pValor))
	{
		var vValor = pValor.rawValue;
		//--SOMENTE LETRAS
		var regExp = /[\60\61\62\63\64\65\66\67\68\69\70\71\53]/g;		
		if (regExp.test(vValor))
		{
			xfa.host.messageBox("Atenção, favor digitar somente letras.","Atenção", 1,0);
			pValor.rawValue = "";
			xfa.host.setFocus(pValor);
		}			
	}	
}



			n = document.inicio_aut.email.value.indexOf("@");
				if (document.inicio_aut.email.value == "" || document.inicio_aut.email.value == "Seu e-mail:" || n == -1 || document.inicio_aut.email.value.substring(0, n) == "" || document.inicio_aut.email.value.charAt(n+1) == "") {
					alert("Preencha o campo com seu E-MAIL corretamente!");
					document.inicio_aut.email.value = '';
					document.inicio_aut.email.focus();
					return false;
				}
