XML 50 R38.htm IDEA: XBRL DOCUMENT v3.8.0.1
1. Summary of Significant Accounting Policies (Details - Earnings Per Share) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2015
Sep. 30, 2015
Jun. 30, 2015
Mar. 31, 2015
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Accounting Policies [Abstract]                              
Numerator for basic and diluted earnings per share $ (9,951) $ 4,663 $ 4,572 $ 4,480 $ 7,465 $ 7,348 $ 7,272 $ 7,214 $ 8,967 $ 8,843 $ 8,537 $ 8,333 $ 3,765 $ 29,300 $ 34,681
Denominator for basic earnings per share - weighted average number of common shares outstanding during the year                         22,687 24,356 25,935
Incremental common shares attibutable to exercise of outstanding options and warrants                         4,527 4,679 5,649
Denominator for diluted earnings per share                         27,214 29,035 31,584
Basic earnings per share $ (0.46) $ 0.21 $ 0.20 $ 0.19 $ 0.31 $ 0.31 $ 0.30 $ 0.29 $ 0.35 $ 0.34 $ 0.33 $ 0.33 $ 0.17 $ 1.20 $ 1.34
Diluted earnings per share $ (0.46) $ 0.17 $ 0.17 $ 0.16 $ 0.26 $ 0.26 $ 0.25 $ 0.24 $ 0.29 $ 0.28 $ 0.27 $ 0.26 $ 0.14 $ 1.01 $ 1.10