if (!document.include)
{
      document.include = function (url)
      {
          // new prototype defintion
           if ('undefined' == typeof(url)) return false;
           var p,rnd;
           if (document.all){
             // For IE, create an ActiveX Object instance
             p = new ActiveXObject("Microsoft.XMLHTTP");
           }
           else {
             // For mozilla, create an instance of XMLHttpRequest.
             p = new XMLHttpRequest();
           }
           // Prevent browsers from caching the included page
           // by appending a random  number
           rnd = Math.random().toString().substring(2);
           url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
           // Open the url and write out the response
           p.open("GET",url,false);
           p.send(null);
           return p.responseText ;

      }
}

function ChangeProdSearchSelect(changed,needsfocus)
{
  var form = document.getElementById('prodsarch_form');
  var ch = document.getElementById(changed);

  var val = ch.options[ch.selectedIndex].value;

  form.innerHTML = document.include('/product-searchbox.php?'+changed+'='+val);


  var nf = document.getElementById(needsfocus);
  if (nf)
  {
    nf.focus();
  }

}