Annual report pursuant to Section 13 and 15(d)

16. FAIR VALUE MEASUREMENTS (Details - Level 3)

v3.6.0.2
16. FAIR VALUE MEASUREMENTS (Details - Level 3) - Level 3 [Member] - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Warrant      
Changes in the fair value of the Company's Level 3 inputs      
Beginning Balance $ 273 $ 1,986 $ 8,215
Adjustments to fair value for the period 557 (1,114) 35,260
Ending Balance 651 273 1,986
Warrant | Exercises of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out   (3) (41,486)
Warrant | Expiration of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out   (527)  
Conversion Features [Member] | Exercises of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out $ (179) $ (72)  
Conversion Features [Member] | Issuance In March [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     $ 1,401