
	function soNumeros(oEvent)
	{
		var oRegExp = /[0-9]/;
		var tecla_codigo;
		var tecla_char;
		if (oEvent.keyCode) tecla_codigo = oEvent.keyCode;
		else if (oEvent.which) tecla_codigo = oEvent.which;
		tecla_char = String.fromCharCode(tecla_codigo);
		if (tecla_codigo == 8 || tecla_codigo == 9 || (tecla_codigo == 35 && oEvent.shiftKey) || (tecla_codigo == 36 && oEvent.shiftKey) || (tecla_codigo == 37 && (oEvent.shiftKey || tecla_char != '%')) || (tecla_codigo == 39 && tecla_char != "'") || (tecla_codigo == 46 && tecla_char != '.')) return true;
		else if (!oRegExp.test(tecla_char)) return false;
		else return true;
	}
	
	function trim(sString) 
	{
		
		while (sString.substring(0,1) == ' ')
		{
			sString = sString.substring(1, sString.length);
		}
		
		while (sString.substring(sString.length-1, sString.length) == ' ')
		{
			sString = sString.substring(0,sString.length-1);
		}
		
		return sString;
		
	}
	
	function validaMatricula(strNumero){
				
		if( strNumero.length == 0 )
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	
	function validaNome(strNome){
		
		var erNome = /^((\w[ ]?)+)$/;
		
		if( erNome.test(strNome) )
		{
			return false;
		}
		else
		{
			return true;
		}
	}

	function validaEmail(strEmail){
		
		var ER = /^([0-9a-zA-Z]([-_.]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$/;
		
		if(ER.test(strEmail))
		{
			return false;
		}
		else
		{
			return true;
		}
	}

