<form action="reg2.asp" method="post" enctype="multipart/form-data" name="reg" onsubmit="return checkForm(this);">
<script>
function checkForm(th){
if (th.elements["restNamn"].value.length==0){
alert("Ange namn på restaurang!");
return false;
}
var checkCount=0;
for(var i=0;i<th.elements.length;i++)
if(th.elements[i].type=="checkbox" && th.elements[i].name=="kategori" && th.elements[i].checked)
checkCount++;
if (checkCount==0){
alert("Kryssa i minst en ruta!");
return false;
}
return true;
}
</script>
263 ms totalt · 4 externa anrop · v20260731065814-full.14655e19