function loader() {
   self.focus();
   /*
   var form=document.forms[0];
   var form=document.forms["partsearchinput"];
   */

   var form=document.forms[0];

   /*
   alert("l is "+document.partsearchinput.part.value);
   alert(" 1 is "+form.name.value+" 2 is "+form2.name.value);
   alert(" head is "+form.partsearchinput.value);
   alert(" testis "+document.getElementById('partsearchinput'));
   form.setAttribute("autocomplete","off");
   form.elements[0].focus();
   */

   if (form!=null) { 
      form.setAttribute("autocomplete","off");
      form.elements["part"].focus();
      }
}

function desc() {
   document.getElementByID("descContent").style.visibility="none";
}

function desc_search() {
             document.getElementById('descContainer').style.visibility='none';
              }
           function showcart() {
              alert("cart is empty");
              }
          function HideContent(d) {
               if(d.length < 1) { return; }
               document.getElementById(d).style.display = "none";
               }
          function ShowContent(d) {
               if(d.length < 1) { return; }
               document.getElementById(d).style.display = "block";
               }
          function ReverseContentDisplay(d) {
               if(d.length < 1) { return; }
               if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
               else { document.getElementById(d).style.display = "none"; }
               }

function pick_category(it) {
  /*alert("bad is"+it.sub_category[it.selectedIndex].value); */
  /*alert("bad is"+it[it.selectedIndex].value); */
  var id=it[it.selectedIndex].value;
  self.location="partsearchinput3.do?function=Click&Part=NA&Page=1&Manu=NA&ManuSort=No&Category_id="+id;
}

