Ich habs...
Danke für deine Gedult!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>test</title>
<script type="text/javascript">
function ausgeben(){
var temp = ''
if( document.form.checkbox1.checked == true)
{temp += '' + document.form.checkbox1.value + "<br>"}
var temp1 = ''
if( document.form.checkbox2.checked == true)
{temp += '' + document.form.checkbox2.value + "<br>"}
var temp2 = ''
if( document.form.checkbox3.checked == true)
{temp += '' + document.form.checkbox3.value + "<br>"}
return temp+temp1+temp2;
}
</script>
</head>
<body>
<form name="form" action="#">
<p>
<input type="checkbox" name="checkbox1" value="checkwert1"> Checkwert<br>
</p>
<input type="checkbox" name="checkbox2" value="checkwert2"> Checkwert2<br>
</p>
<input type="checkbox" name="checkbox3" value="checkwert3"> Checkwert3<br>
<p>
<input type="button" value="click" onclick="document.getElementById('werte').innerHTML = ausgeben();">
</p>
</form>
<table border="1">
<tr>
<td id="werte">Nix</td>
</tr>
</table>
<p> </p>
<p>function myfunc(){<br>
var temp = ''; // vorinitialisieren<br>
if(...){...}<br>
}</p>
</body>
</html>