yId('phone_invalid').style.display = 'block';
      document.getElementById('phone_invalid').style.visibility = 'visible';
      return false;
    }
    else if( document.getElementById("email") && !validEmail(data.email) ) {
      document.getElementById('email-invalid').style.display = 'block';
      return false;
    } else {
      document.getElementById("submit").disabled = true;
      browseAllUrl(data); // set the url for search results page.
      var url = "https://script.google.com/macros/s/AKfycb