Hola:
Para distintos nombres te recomiendo que los agrupes (tal vez en un fieldset)
Código:
<html>
<head>
<title>
pruebas
</title>
<script type="text/javascript">
function marcando(c) {
estado = c.checked;
for (i = 0, todos = c.parentNode.childNodes, total = todos.length; i < total; i ++)
if (todos[i].form == c.form)
todos[i].disabled = (todos[i] == c) ? false : estado;
}
</script>
</head>
<body >
<form>
<fieldset><legend>grupo</legend>
<input type="checkbox" name="prueba1" value="2" onclick="marcando(this)" />
<input type="checkbox" name="prueba2" value="2" onclick="marcando(this)" />
<input type="checkbox" name="prueba3" value="2" onclick="marcando(this)" />
<input type="checkbox" name="prueba4" value="2" onclick="marcando(this)" />
<input type="checkbox" name="prueba5" value="2" onclick="marcando(this)" />
</fieldset>
<input type="checkbox" name="prueba7" value="2" onclick="marcando(this)" />
</form>
</body>
</html>
Saludos