moved function declartions to top level of functions to meet strict mode requirements
moved function declartions to top level of functions to meet strict mode requirements

t-yanaka/zabbix-report,t-yanaka/zabbix-report,olifolkerd/tabulator,t-yanaka/zabbix-report,t-yanaka/zabbix-report