if (documento.form1.campo1.value == "") ...


metti le parentesi tonde quando usi l'if.