Only send query parameters relevant for the current query type (simple/structured), hide the other input fields. This is quite a bit of CSS state changing, so move the intial setup of the input field states into Javascript.