
          function validate(thisForm)
          {
            var test = false;
            //set hidden variables for form
            if (thisForm.a2_Email.value != "") {
                thisForm.fromEmail.value = thisForm.a2_Email.value;
            }
            thisForm.a3_Phone.value = thisForm.b1_Tel1.value + "-" + thisForm.b1_Tel2.value  + "-" +
            thisForm.b1_Tel3.value + "-" + thisForm.b1_Tel4.value;

            thisForm.a4_Fax.value = thisForm.b2_Fax1.value + "-" + thisForm.b2_Fax2.value  + "-" +
            thisForm.b2_Fax3.value;
            if (thisForm.a1_Name.value == "")
            {
              alert ('Enter your name.');
              thisForm.a1_Name.focus();
            }
            else if (thisForm.a2_Email.value == "" && thisForm.a3_Phone.value == "---" && thisForm.a4_Fax.value == "--")
            {
              alert ('Enter at least one of: email address, telephone number, fax number.');
              thisForm.a2_Email.focus();
            }
            else if ( thisForm.b1_Tel1.value != "" && thisForm.b1_Tel2.value != ""
            && thisForm.b1_Tel3.value != "" && !(top.validateTel(thisForm.b1_Tel1.value, thisForm.b1_Tel2.value, thisForm.b1_Tel3.value, thisForm.b1_Tel4.value)) )
            {
              alert ('Enter a valid telephone number.');
              thisForm.b1_Tel1.focus();
              thisForm.b1_Tel1.select();
            }
            else if ( thisForm.b2_Fax1.value != "" && thisForm.b2_Fax2.value != "" && thisForm.b2_Fax3.value != ""
            && !(top.validateTel(thisForm.b2_Fax1.value, thisForm.b2_Fax2.value, thisForm.b2_Fax3.value, "")) )
            {
              alert ('Enter a valid fax number.');
              thisForm.b2_Fax1.focus();
              thisForm.b2_Fax1.select();
            }
            else if ( thisForm.a2_Email.value != "" && !(top.validateEmail(thisForm.a2_Email.value)) )
            {
              alert ('Enter a valid email address.');
              thisForm.a2_Email.focus();
              thisForm.a2_Email.select();
            }
            else
              test = true;
            return test;
          }
