First, the if statements should read: if(strValue == "false"), etc.
Note that you are assigning the value "false" (single equal sign) instead of comparing (double equal sign).
Second, strValue is the .text value already and that property probably doesn't even exist on the variable.
Since this code is not running in the OnLoad event handler, you should not be using the .IsDefault property. Instead you should use the SwitchViews() function.