Hallo Manuela, hier mal ein fertiges Beispiel:
<html>
<head>
<title>Formular</title>
<script type="text/javascript">
<!--
function pruef()
{
s=false;
for (i=0;i<document.formular.branche.length;i++){
if(document.formular.branche[i].checked == true){
s=true;
}
}
if(s==false){
alert ("Bitte A, oder B auswählen!");
return false;
}
}
//-->
</script>
</head>
<body>
<form name="formular" action="[url]http://example.com"[/url] method="post" onSubmit="return pruef()">
A<input type="checkbox" name="branche" value="A">
B<input type="checkbox" name="branche" value="B">
<br>
<input type="submit" value="Absenden">
</form>
</body>
</html>
Die Namen von Formular und Kontrollkästchen mußt Du bestimmt noch anpassen.
Gruß Sabine