<script type="text/javascript"> var counter = 0; function onlyTwo(obj){ if (obj.checked) { if (counter == 2) obj.checked = false; else counter++; } else counter--; } </script>טכ"מ <input type="checkbox" name="megama[]" value="tehem" onclick="onlyTwo(this);" /> מדעים <input type="checkbox" name="megama[]" value="madaim" onclick="onlyTwo(this);" /> אנגלית <input type="checkbox" name="megama[]" value="english" onclick="onlyTwo(this);" />
|