Hi!

I am quite new to javascript, however I have done a bit of HTML in the past!

Anyway. I have this code (beneath) except it won't work, and I can't for the life of me work out why! I'm hoping someone with more experience will know...?

I am trying to make the form return with an error box stating: "Please choose how many beds" if no beds were selected.

<html>
<head>
<script type="text/Javascript">
function checkform()
{
if(document.PropertyDetail.menu.value == "0";}
{
window.alert('Please choose how many beds');
return false;
{
return true;
}
</script>
</head>
<body>
<br>
<br>
<form name="PropertyDetail" action=SubmitPage.html method="post" onSubmit="return checkform()">
<font color="FFFFFF">Number of Beds:</font> <select name="menu">
<option value="0">Please Choose</option>
<option value="1">2</option>
<option value="2">3</option>
<option value="3">4</option>
</select>
<br />
<br />
<font color="FFFFFF">Location;</font><ul style="list-style-type: none">
<li><input type="checkbox" name="Jesmond" value="Jesmond"/> <font color="FFFFFF">Jesmond</font></li>
<li><input type="checkbox" name="Fenham" value="Fenham"/> <font color="FFFFFF">Fenham</font></li>
<li><input type="checkbox" name="Heaton" value="Heaton"/> <font color="FFFFFF">Heaton</font></li>
<li><input type="checkbox" name="City Centre" value="City Centre"/> <font color="FFFFFF">City Centre</font></li>
</ul>
<br />
<br />
<input type="submit" value="Submit"><input type="reset" />
</form>
</body>
</html>

Thanks Guys!