	function SoloLetras(e) 
	{	
		var tecla = (document.all) ? e.keyCode : e.which;
		if (tecla==8 || tecla==37 || tecla==39 || tecla==35 || tecla==36 || tecla==46) 
			return true;
		patron = /^[a-zA-ZρΡαΑιΙνΝσΣϊΪόά\s]$/;
		te = String.fromCharCode(tecla);
		return patron.test(te);
	}

	function SoloNumeros(e) 
	{	
		var tecla = (document.all) ? e.keyCode : e.which;
		if (tecla==8 || tecla==37 || tecla==39 || tecla==35 || tecla==36 || tecla==46) 
			return true;
		patron = /[\d]/;
		te = String.fromCharCode(tecla);
		return patron.test(te);
	}	

	function SoloNumerosLetras(e) 
	{	
		var tecla = (document.all) ? e.keyCode : e.which;
		if (tecla==8) 
			return true;
		patron =/[\dA-Za-zρΡαΑιΙνΝσΣϊΪόά\s]/;
		te = String.fromCharCode(tecla);
		return patron.test(te);
	}
		
	function TamanoMaximoKeyPress(Caja, e, Maximo)
	{	
		var tecla = (document.all) ? e.keyCode : e.which;
		if (tecla==8) 
			return true;
		if (Caja.value.length < Maximo) 
			return true;
		else	
			return false;
	}
	
	function TamanoMaximoKeyDown(Caja, e, Maximo)
	{
		var tecla = (document.all) ? e.keyCode : e.which;
		
		if (tecla==8) 
			return true;
			
		if (Caja.value.length < Maximo) 
			return true;
		else	
			return false;
	}