	}
			}
		})
    {{ end }}
          return;
      }
      if (document.getElementById('search-location').value.trim() === '') {
			  window.location.href = '/{{ .SiteJobCategoryURLEncoded }}-Developer-Salary-Remote';
      } else {
			  window.location.href = '/{{ .SiteJobCategoryURLEncoded }}-Developer-Salary-'+encodeURIComponent(document.getElementById('search-location').value);
      }
    });

    function isEmail(email) {
            var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".