function PreencheMaiuscula(Campo, PadraoMaiuscula)
{
	var i = 0;
	var arrTexto = Campo.value.split(" ");	
	var strTexto = '';	
	if(PadraoMaiuscula == 'T')
	{						
		Campo.value = Campo.value.toUpperCase();
	}
	else
	{
		if(PadraoMaiuscula == 'I')
		{
			for (i = 0; i < arrTexto.length; i++)
			{
				if((arrTexto[i].toUpperCase() != 'DE')&&(arrTexto[i].toUpperCase() != 'DA')&&(arrTexto[i].toUpperCase() != 'DO')&&(arrTexto[i].toUpperCase() != 'DAS')&&(arrTexto[i].toUpperCase() != 'DOS')&&(arrTexto[i].toUpperCase() != 'E'))
				{
					arrTexto[i] = arrTexto[i].replace(arrTexto[i].substring(0,1), arrTexto[i].substring(0,1).toUpperCase());				
					arrTexto[i] = arrTexto[i].replace(arrTexto[i].substring(1,arrTexto[i].length), arrTexto[i].substring(1,arrTexto[i].length).toLowerCase());
				}
				else
				{
					arrTexto[i] =  arrTexto[i].toLowerCase();
				}
				
				if(i < arrTexto.length - 1)
				{
					strTexto = strTexto + arrTexto[i] + ' ';
				}
				else
				{
					strTexto = strTexto + arrTexto[i];
				}
				Campo.value = strTexto;
				
			}
		
		}
	}
	
		
}