All pastes #547212 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-07 09:27 UTC
rendered paste body
if(IS_ENABLED_XSLT){
          var theSearch=formReference.searchQuery.value;
          if(is_ie)//escape the entry
               theSearch=Utf8.encode(theSearch)

          // MFS HACK: appending a random number to search.xml in order to avoid grabbing a cached version of the
          // search page...this really needs to be fixed on the backend
          ajaxLink("search.xml?searchQuery="+theSearch+"&searchType="+formReference.searchType.value, null, true);
          document.getElementById(document.formSearch.name + '_errorSearchLength').style.visibility = "hidden"; //clear the error box if it is visible
          document.formSearch.searchQuery.value=formReference.searchQuery.value;//set the main search box value to the last search
          return false;
     }else{
          formReference.searchQuery.value=theSearch=Utf8.encode(formReference.searchQuery.value);

          if(region == "KR"){
               formReference.searchQuery.value=theSearch=Utf8.decode(formReference.searchQuery.value);
          }

          formReference.submit();
          showLoader();
     }