bes, ))))
GrizzlyBear, можно сразу с привязкой слов замутить...
<html>
<head>
<title></title>
<script>
var img = {
"img0": "а,б,в",
"img1": "г,д,е",
"img2": "ё,ж,з",
"img3": "и,й,к",
"img4": "л,м,н"
}, d = document;
function view() {
var form = d.getElementById("form"), str = "";
for (i=0; i<form.elements.length; i++) {
if (form.elements[i].checked) {
for (j in img) {
if (img[j].indexOf(form.elements[i].value) != -1 && str.indexOf(j) == -1) {
str += j + "<br>";
}
}
}
}
d.getElementById("imgs").innerHTML = str;
}
</script>
</head>
<body>
<form id="form">
<label><input type="checkbox" value="а">а</label>
<label><input type="checkbox" value="б">б</label>
<label><input type="checkbox" value="в">в</label>
<label><input type="checkbox" value="г">г</label>
<label><input type="checkbox" value="д">д</label>
<label><input type="checkbox" value="е">е</label>
<label><input type="checkbox" value="ё">ё</label>
<label><input type="checkbox" value="ж">ж</label>
<label><input type="checkbox" value="з">з</label>
<label><input type="checkbox" value="и">и</label>
<label><input type="checkbox" value="к">к</label>
<label><input type="checkbox" value="л">л</label>
<label><input type="checkbox" value="м">м</label>
<label><input type="checkbox" value="н">н</label>
<input type="button" value="Вывести" onClick="view()">
</form>
<div id="imgs"></div>
</body>
</html>