	RestrictField = Class.create();
	RestrictField.char_table={109:'-'}
	Object.extend(RestrictField.prototype,{
		initialize:function(ele,options){
			this.options=options;
			this.ele = $(ele);
			Event.observe(ele,"keydown",function(evt){
				var char = String.fromCharCode(evt.keyCode);
				var pass = false;
				
				
				if([1,2,3,4,5,6,7,8,9,0].include(char)) {
					pass = true;
				}
				if([8,13,37,38,39,40,112,113,114,115,116,117,118,119,120,121,122,123].include(evt.keyCode)) {
					pass = true;
				}
				if(char==' ') evt.stop();
				if(!pass){
						evt.stop();
				}
				if(this._ival) clearInterval(this._ival);
				this._ival = window.setInterval(function(){
					this.ele.value = $F(this.ele).match(/[0-9]*/);
					clearInterval(this._ival);
				}.bind(this),0.5);
				
				
				
				
				return false;
			}.bind(this)
			);
		}
	});
	
