function allCaps(theField) 
{
		theField.value=theField.value.toUpperCase();
}
function dosearch(iform) 
{
  var thepart=iform.partno ; 
  var thedesc=iform.description ;
  var Nums = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcedfghijklmnopqrstuvwxyz-" ;
  var thepartVal = thepart.value ;
  var partLen = thepartVal.length;
  var theDigit="";
  var soFar="";
  if( iform.partno.value == "" && iform.description.value ==""  )
  {
     alert("Part Number and/or Description is required to search database.") ;
     thepart.focus();
     thepart.select();
	 return false ;
  }
  for (i=0;i<partLen;i++) 
  {
                theDigit = thepartVal.charAt(i);
                if (Nums.indexOf(theDigit)==-1) 
				{
                        thepart.value=soFar;
                        alert("Part No may not contain " + theDigit + "'s. Please try again.");
                        thepart.focus();
                        thepart.select();
                        return false;
                }
  }	
  iform.submit() ;
  return true ;
}

function getpart(iform)
{
  if(iform.partno.value != "")
  {
    iform.hpart.value = iform.partno.value;
	return true;
  }
}
 
function openWin( windowURL, windowName, windowFeatures )
{
 return window.open( windowURL, windowName, windowFeatures ) ;
}

function clearall(iform)
{
  iform.partno.value = "";
  iform.description.value = "";
  iform.location.value = "";
  return true;
}

