Added functions to get level and set on index page

in function.js
getLevel()
getSet()

added to onclick of collapsible menu buttons.