function validate(myForm) { var status = true; if (myForm.frmTitle.value == "") { alert("Please select a title from the list"); myForm.frmTitle.focus(); status = false; } else if (myForm.frmFirstName.value == ""){ alert("Please tell us your first name"); myForm.frmFirstName.focus(); status = false; } else if (myForm.frmLastName.value == ""){ alert("Please tell us your last name"); myForm.frmLastName.focus(); status = false; } else if (myForm.frmAddress.value == ""){ alert("Please tell us your address"); myForm.frmAddress.focus(); status = false; } else if (myForm.frmRANo.value == ""){ alert("Please tell us your Rent Account number"); myForm.frmRANo.focus(); status = false; } else if (myForm.frmPhone.value == ""){ alert("Please tell us your telephone number"); myForm.frmPhone.focus(); status = false; } else if (myForm.frmComments.value == ""){ alert("Please tell us about the problem"); myForm.frmComments.focus(); status = false; } else if (myForm.frmReported.value == ""){ alert("Please indicate whether you have reported this problem to us before"); myForm.frmReported.focus(); status = false; } return status; }