STOCK OPTIONS AND STOCK BASED COMPENSATION (Details 2)
|
3 Months Ended |
|
Jan. 31, 2017
$ / shares
shares
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
$ 5.90
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 119.80
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
193,086
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
4 years 10 months 28 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 28.87
|
| Options Exercisable, Shares (in shares) | shares |
152,311
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 33.33
|
| Range Of Exercise Prices One [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
0
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 5.90
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
32,000
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
9 years 4 months 6 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 5.90
|
| Options Exercisable, Shares (in shares) | shares |
0
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 0
|
| Range Of Exercise Prices Two [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
11.98
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 21.96
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
19,819
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
4 years 4 months 10 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 18.80
|
| Options Exercisable, Shares (in shares) | shares |
19,819
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 18.80
|
| Range Of Exercise Prices Three [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
24.63
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 24.63
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
187
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
1 year 9 months
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 24.63
|
| Options Exercisable, Shares (in shares) | shares |
187
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 24.63
|
| Range Of Exercise Prices Four [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
25.62
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 25.62
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
27,045
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
6 years 9 months 22 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 25.62
|
| Options Exercisable, Shares (in shares) | shares |
27,045
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 25.62
|
| Range Of Exercise Prices Five [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
25.96
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 26.80
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
24,735
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
2 years 7 months 24 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 26.38
|
| Options Exercisable, Shares (in shares) | shares |
20,201
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 26.28
|
| Range Of Exercise Prices Six [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
28.20
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 33.94
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
4,441
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
3 years 6 months 7 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 29.22
|
| Options Exercisable, Shares (in shares) | shares |
4,283
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 29.26
|
| Range Of Exercise Prices Seven [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
34.94
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 34.94
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
42,972
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
7 months 17 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 34.94
|
| Options Exercisable, Shares (in shares) | shares |
42,972
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 34.94
|
| Range Of Exercise Prices Eight [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
35.27
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 42.60
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
22,133
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
7 years
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 41.16
|
| Options Exercisable, Shares (in shares) | shares |
21,505
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 41.18
|
| Range Of Exercise Prices Nine [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
45.59
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 91.85
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
19,344
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
5 years 10 months 2 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 55.73
|
| Options Exercisable, Shares (in shares) | shares |
15,889
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 57.91
|
| Range Of Exercise Prices Ten [Member] |
|
| Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] |
|
| Range of Exercise Prices, Lower Limit (in dollars per share) |
98.50
|
| Range of Exercise Prices, Upper Limit (in dollars per share) |
$ 119.80
|
| Options Outstanding, Shares Outstanding (in shares) | shares |
410
|
| Options Outstanding, Weighted Average Remaining Contractual Term (in years) |
4 years 11 months 8 days
|
| Options Outstanding, Weighted Average Exercise Price (in dollars per share) |
$ 104.49
|
| Options Exercisable, Shares (in shares) | shares |
410
|
| Options Exercisable, Weighted Average Exercise Price (in dollars per share) |
$ 104.49
|