if (mywebpage.Surname.value == "") { alert("Please enter a value for the Surname field."); mywebpage.Surname.focus(); return (false); }This worked well until I discovered in the backend database that there were some records with mandatory fields missing. I tracked it down to that fact that some older Netscape browsers were ignoring the Javascript. I decided to remove the Javascript and perform the validation on the server side using ASP. This works well, although in my opinion it's not as elegant looking as the Javascript validation.