<input type="radio" name="radiobutton" value="radiobutton" onclick="f(true)">
共有
<input type="radio" name="radiobutton" value="radiobutton" onclick="f(false)">
私有
<input type="checkbox" name="chkbox" value="checkbox">
仅朋友可见
<input type="checkbox" name="chkbox" value="checkbox">
<script>
function f(w) {
var a = document.getElementsByName("chkbox");
for (var i=0; i<a.length; i++) {
w?new function() {a[i].checked=false,a[i].disabled=true}:a[i].disabled=false;
}
}
</script>