// disables some control if other radio/checkbox control is checked
// parameters: boolean value, control that should be disabled/enabled

function disable_if_checked(checked, ctrl_to_disable) {
   ctrl_to_disable.disabled=checked;
}
