function pDAFUIIntSpinnerClass(){}
pDAFUIIntSpinnerClass.prototype={up:function(b,d,c,a){b&&b.blur();this.increase(jphloc.ge(d),c,a)},increase:function(b,d,c){if(b){var a=parseInt(b.value);isNaN(a)&&(a=0);a++;null!=d&&a<d&&(a=d);null!=c&&a>c&&(a=c);b.value=a}},down:function(b,d,c,a){b&&b.blur();this.decrease(jphloc.ge(d),c,a)},decrease:function(b,d,c){if(b){var a=parseInt(b.value);isNaN(a)&&(a=0);a--;null!=d&&a<d&&(a=d);null!=c&&a>c&&(a=c);b.value=a}},keyPressed:function(b,d,c,a){b=this.getKey(b);if(38==b)return this.increase(d,c,
a),!0;if(40==b)return this.decrease(d,c,a),!0;var e=/[1234567890]/g;0>c&&(e=/[1234567890-]/g);if("string"==typeof b){if(!b.match(e))return!1}else this.validate(d.id,c,a);return!0},getKey:function(b){return null==b.which?String.fromCharCode(b.keyCode):0!=b.which&&0!=b.charCode?String.fromCharCode(b.which):b.keyCode},validate:function(b,d,c){if(b=jphloc.ge(b)){var a=parseInt(b.value);isNaN(a)&&(a=0);null!=d&&a<d&&(a=d);null!=c&&a>c&&(a=c);b.value=a}}};var pDAFUIIntSpinner=window.pDAFUIIntSpinner=new pDAFUIIntSpinnerClass;

