codice:
campoTesto.restrict = "0-9";
campoTesto.onChanged = function() {
	if (this.text>500) {
		this.text=500;
	}
};