| 11. Stock-based Compensation (Details Narrative) - USD ($) | 3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
| Jun. 30, 2017 | Jun. 30, 2016 | Jun. 30, 2017 | Jun. 30, 2016 | |
| Share-based Compensation [Abstract] | ||||
| Stock-based compensation expense | $ 43,028 | $ 163,482 | $ 137,011 | $ 254,710 | 
| Unrecognized compensation expense | $ 428,306 | $ 428,306 | ||
| Unrecognized compensation amortization period | 3 years 6 months | |||
| X | ||||||||||
| 
- Definition Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Weighted average period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Unrecognized cost of unvested options awarded to employees as compensation. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- References No definition available. 
 |