Please use the Code Tags when posting code. Currently the button for Code Tags looks like #

Regarding your problem, One thing I noticed, is that your ON DIALOG event is missing a parameter

Here's a re-write of your code, combining what you've presented in your posts and my own knowledge
Code:
ON *:DIALOG:setup:*:*:{
  if $devent == init {
    did $iif(%janeekleur == ON,-c,-u) setup 411
  }
  if ($devent == sclick) {
    if ($did == 411) {
      set %janeekleur $iif($did(411).state,ON,OFF)
      .strip $iif($did(411).state,+c,-c)
      echo -a System: Colored text $iif($did(411).state,refused,allowed)
    }
  }
}