function Valida_String (str, acentos, excecoes)
	{
	var strCaracteresAlfabeticos = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
	var strAcentos = 'багйнухъз';
	for (i=0; i < str.length; i ++)
		{
		if (strCaracteresAlfabeticos.indexOf (str.charAt (i)) == -1)
			if (excecoes.indexOf (str.charAt (i)) == -1)
				if (acentos == false)
					return false;
				else
					if (strAcentos.indexOf (str.charAt (i)) == -1)
						return false;
		}
	return true;
	}

function Valida_Texto (texto)
	{
	var szCaracteresTexto = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
		for (i=0; i < texto.length; i ++)
			{
			if (szCaracteresTexto.indexOf (texto.charAt (i)) == -1)
					return false;			
			}
	}

function Valida_Numero (numero)
	{
	var strNumero = '0123456789';
	for (i=0; i < numero.length; i ++)
		if (strNumero.indexOf (numero.charAt (i)) == -1)
			return false;
	return ! isNaN (parseInt (numero));
	}
