v3.8.0.1
6. STOCK BASED COMPENSATION (Details - Stock Option Activity) - Options [Member]
$ / shares in Units, $ in Thousands
3 Months Ended
Mar. 31, 2018
USD ($)
$ / shares
shares
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward]  
Options outstanding, beginning balance | shares 2,141,000
Options granted | shares 335,000
Options outstanding, ending balance | shares 2,476,000
Options exercisable | shares 1,105,000
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Prices [Roll Forward]  
Weighted average exercise price, options outstanding beginning balance | $ / shares $ 7.03
Weighted average exercise price, options granted | $ / shares 5.64
Weighted average exercise price, options outstanding, ending balance | $ / shares 6.84
Weighted average exercise price, options exercisable | $ / shares $ 7.15
Share-based Compensation Arrangement by Share-based Payment Award, Options, Weighted-Average Remaining Contractual Term [Roll Forward]  
Weighted average remaining contractual term, options outstanding 8 years 3 months 18 days
Weighted average remaining contractual term, options exercisable 7 years 8 months 16 days
Share-based Compensation Arrangement by Share-based Payment Award, Options, Intrinsic Value [Roll Forward]  
Intrinsic value, options outstanding ending balance | $ $ 493
Intrinsic value, options exercisable | $ $ 119