Es geht um die Fragen T308 und T312.
T308:
<script type="text/javascript">
// <!--
function DynamicFilter(auswahlIDT308, frageIDT310, frageIDT309, frageIDT311) {
this.option4 = document.getElementById(auswahlIDT308 + "_04a");
this.option5 = document.getElementById(auswahlIDT308 + "_05a");
this.frageT310 = document.getElementById(frageIDT310 + "_qst");
this.frageT309 = document.getElementById(frageIDT309 + "_qst");
this.frageT311 = document.getElementById(frageIDT311 + "_qst");
var that = this;
this.toggle = function() {
if (that.option4.checked || that.option5.checked) {
that.frageT310.style.display = "none";
that.frageT309.style.display = "none";
that.frageT311.style.display = "none";
} else {
that.frageT310.style.display = "";
that.frageT309.style.display = "";
that.frageT311.style.display = "";
}
}
SoSciTools.attachEvent(this.option4, "click", this.toggle);
SoSciTools.attachEvent(this.option5, "click", this.toggle);
this.toggle();
}
new DynamicFilter("T308", "T310", "T309", "T311");
// -->
</script>
T312:
<script type="text/javascript">
// <!--
function DynamicFilterT312(auswahlIDT312, frageIDT313) {
this.option1 = document.getElementById(auswahlIDT312 + "_01a"); // Option 1
this.option3 = document.getElementById(auswahlIDT312 + "_03a"); // Option 3
this.frageT313 = document.getElementById(frageIDT313 + "_qst"); // Frage T313
var that = this;
this.toggle = function() {
if (that.option1.checked || that.option3.checked) {
that.frageT313.style.display = "none"; // Frage T313 ausblenden
} else {
that.frageT313.style.display = ""; // Frage T313 anzeigen
}
}
SoSciTools.attachEvent(this.option1, "click", this.toggle);
SoSciTools.attachEvent(this.option3, "click", this.toggle);
this.toggle();
}
new DynamicFilterT312("T312", "T313");
// -->
</script>