Постави, но не работает
<input type="checkbox" id="snyatlen1" />
<div class="vib1" id="men1"></div>
<div class="vib5" id="men5"></div>
<script>
var che = document.getElementById("snyatlen1");
var che2 = document.getElementById("men1");
var che3 = document.getElementById("men5");
che.onchange = function() {
che2.className = this.checked ? "vib2" : "vib1";
if(che2.className=="vib1"{
che3.className="vib9";
}
else if(che2.className=="vib2"{
che3.className="vib77";
}
};
</script>