function createPermissionsBox()
 {
     require_once "UserRights.php";
     $UR = new UserRights();
     $perms = $UR->returnPermissions();
     $htm = '<select id="permissionselection" name="permissionselection" onchange="permissionhelp(this.form)">';
     foreach ($perms as $item => $value) {
         foreach ($perms[$item] as $obj) {
             if ($obj->name == null) {
                 die('Name is Null');
             }
             if ($obj->isAllowed == true) {
                 $htm = $htm . '<option value="' . $obj->name . '">' . $item . ' | ' . $obj->name . '</option>';
             }
         }
     }
     $htm = $htm . '</select>';
     return $htm;
 }