<!--

function check_empty(textValue) {
   var len = textValue.length;
   if (len == 0)
      return true;
   return false;
}
function check_numbers(numbers) {
   if (isNaN(numbers))
      return true;
   return false;
}
function check() {
   var thisForm = document.SearchForm;
   var count = 0;
   if (check_empty(thisForm.ItemNumber.value)) count++;
   if (check_empty(thisForm.Difficulty.value)) count++;
   if (check_numbers(thisForm.PieceLower.value)) {
      alert ("Piece number can only be numbers");
      return false;
   }
   if (check_numbers(thisForm.PieceHigher.value)) {
      alert ("Piece number can only be numbers");
      return false;
   }
   if (check_empty(thisForm.PieceLower.value) && check_empty(thisForm.PieceLower.value)) count++;
   if (check_empty(thisForm.Manufacturer.value)) count++;
   if (check_empty(thisForm.Catagory.value)) count++;
   if (check_numbers(thisForm.PriceLower.value)) {
      alert ("Price can only be numbers");
      return false;
   }
   if (check_numbers(thisForm.PriceLower.value)) {
      alert ("Price can only be numbers");
      return false;
   }
   if (check_empty(thisForm.PriceLower.value) && check_empty(thisForm.PriceLower.value)) count++;
   if (!thisForm.cork.checked) count++;
   if (!thisForm.glow.checked) count++;
   if (!thisForm.enhanced.checked) count++;
   if (!thisForm.hidden.checked) count++;
   if (!thisForm.hologram.checked) count++;
   if (!thisForm.metallic.checked) count++;
   if (!thisForm.mosaic.checked) count++;
   if (!thisForm.odorous.checked) count++;
   if (!thisForm.stained.checked) count++;
   if (!thisForm.mini.checked) count++;
   if (!thisForm.vivid.checked) count++;
   if (count == 17 ) {
     alert( "You must enter at least one option for the search" );
     return false;
   }
   
   return true;
}

function check_login(loginName) {
   var len = loginName.length;
   if (len == 0) {
      alert( "You have to login first" );
      return false;
   }
   return true;
}
//-->
