'; } function suggestClick(href) { window.location.href = href; } function prodSearchSubmit(input) { var searchString = input.closest('.productSearchInputGroup').find(".primaryProductSearch").val(); if (searchString == "") { $(".errorMsg p").text("Please enter a search term into the input box."); $(".errorMsg").show(); return false; } var searchData = {}; searchData["q"] = searchString; window.location.href = href + encodeURIComponent(searchString) }