window.onload = function() {
\t \t var rad = document.myForm.radioBtnNm;
\t \t var prev = null;
\t \t for (var i = 0; i < rad.length; i++) {
\t \t \t rad[i].onclick = function() {
\t \t \t \t
\t \t \t \t if (this.checked == true) {
\t \t \t \t \t if (this.value == "check1") {
\t \t \t \t \t \t document.getElementById("checkboxDiv1").style.display = "none";
\t \t \t \t \t \t document.getElementById("checkboxDiv2").style.display = "block";
\t \t \t \t \t } else {
\t \t \t \t \t \t document.getElementById("checkboxDiv1").style.display = "block";
\t \t \t \t \t \t document.getElementById("checkboxDiv2").style.display = "none";
\t \t \t \t \t }
\t \t \t \t }
\t \t \t };
\t \t }
\t }
\t \t
\t \t \t Show
\t \t \t Chckbox list 1
\t \t \t \t value="check2">Show Chckbox list 2
\t \t
\t \t
\t \t \t Checkbox List 1
\t \t \t \t type="checkbox" name="checkbox1" value="one"> One
\t \t \t \t type="checkbox" name="checkbox1" value="two"> Two
\t \t \t \t type="checkbox" name="checkbox1" value="three"> Three
\t \t
\t \t
\t \t \t Checkbox List 2
\t \t \t \t type="checkbox" name="checkbox2" value="three"> Three
\t \t \t Two
\t \t \t One
\t \t
\t