Annual report pursuant to Section 13 and 15(d)

FAIR VALUE MEASUREMENTS. (Details 2)

v3.8.0.1
FAIR VALUE MEASUREMENTS. (Details 2) - Level 3 [Member] - Warrants [Member] - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]      
Beginning Balance $ 651 $ 273 $ 1,986
Exercised warrants (178) (179) (72)
Expiration of warrants     (527)
Adjustments to fair value for the period (473) 557 (1,114)
Ending Balance $ 651 $ 273