Bugfix Login form displayed inside #body

- when session expires
Move ChangeHTML JS function to Profiles
Move SetMLvalue JS function to Inputs
Shorten ExpandMenu JS function
Shorten expandHelp JS function