function shoeFinder(sType, sKey) {
  var newWinHref="./";
  var sObj=document.getElementById(sKey);
  if (sObj!=null) {
    switch (sType) {
      case "cat":
        sObj=parseInt(sObj[sObj.selectedIndex].value);
        if (!isNaN(sObj) && sObj > 0)
          newWinHref="listing.asp?type=cat&it="+sObj;
        break;
      case "key":
        sObj=String(sObj[sObj.selectedIndex].value);
        if (sObj!="")
          newWinHref="listing.asp?type=key&id="+encodeURIComponent(sObj.substr(0,128));
        break;
    }
  }
  window.location.href=newWinHref;
}
