function validate(thisForm) { var empty = ""; var display = ""; if (thisForm.user_name.value == "") { empty += "user_name,"; display += "\n Full Name"; } if (thisForm.address.value == "") { empty += "address,"; display += "\n Address"; } if (thisForm.city.value == "") { empty += "city,"; display += "\n City"; } if (thisForm.state.value == "") { empty += "state,"; display += "\n State"; } if (thisForm.zip.value == "") { empty += "zip,"; display += "\n Zip"; } if (thisForm.phone.value == "") { empty += "phone,"; display += "\n Phone Number"; } if (empty) { alert("Please note that the following fields are required to process your registration.\nEnter valid values for:"+display); return false; } return (true);