| M. DISCONTINUED OPERATIONS (Details - Income Statement) - USD ($) | 3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| Jun. 30, 2018 | Jun. 30, 2017 | Jun. 30, 2018 | Jun. 30, 2017 | |
| Income from Discontinued Operations (net of tax) | $ 0 | $ 18,855 | $ 0 | $ 590,657 | 
| Segment Discontinued Operations [Member] | ||||
| Revenues - Product | 0 | 0 | 0 | 653,839 | 
| Revenues - Recurring | 0 | 0 | 0 | 925,837 | 
| Total Net Revenue | 0 | 0 | 0 | 1,579,676 | 
| Cost of Sales - Product | 0 | (10,225) | 0 | 414,604 | 
| Cost of Sales - Recurring | 0 | 689 | 0 | 209,868 | 
| Total Cost of Sales | 0 | (9,536) | 0 | 624,472 | 
| Gross Profit | 0 | 9,536 | 0 | 955,204 | 
| Selling, general and administrative | 0 | (9,924) | 0 | 252,110 | 
| Depreciation and amortization | 0 | 0 | 0 | 60,420 | 
| Total Operating Expenses | 0 | (9,924) | 0 | 312,530 | 
| Income from Discontinued Operations before Provision for Income Taxes | 0 | 19,460 | 0 | 642,674 | 
| Provision for Income Taxes | 0 | 605 | 0 | 52,017 | 
| Income from Discontinued Operations (net of tax) | $ 0 | $ 18,855 | $ 0 | $ 590,657 | 
| X | ||||||||||
| 
- Definition Amount of costs of goods sold attributable to disposal group, including, but not limited to, discontinued operation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of costs of goods sold attributable to disposal group, including, but not limited to, discontinued operation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount before tax of income (loss) from a discontinued operation. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of tax expense (benefit) related to a discontinued operation. Includes, but is not limited to, tax expense (benefit) related to income (loss) from operations during the phase-out period, tax expense (benefit) related to gain (loss) on disposal, tax expense (benefit) related to gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and tax expense (benefit) related to adjustments of a prior period gain (loss) on disposal. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of costs of goods sold attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of depreciation and amortization expense attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of general and administrative expense attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of gross profit attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of operating expense attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount after tax of income (loss) from a discontinued operation including the portion attributable to the noncontrolling interest. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 |