/*******************************************
* Two very simple scripts to check the artist
* and category list sections. These ensure 
* that if the Go button is pressed and no
* items are selected from the list an alert
* pops up to warn the user, processing of the
* form cannot continue. If JavaScript is 
* turned off in the browser then backup server
* scripts check these values and return 
* the user back to the default page with a 
* message.
* 
* Author:     David Barber
* Date:       2003-05-07
* LastUpdate: 2003-05-07
********************************************/
function requireArtistValues (listArtist) {
  if ((listArtist.artist1.selectedIndex <= 0) && 
     (listArtist.artist2.selectedIndex <= 0) &&
     (listArtist.artist3.selectedIndex <= 0) &&
     (listArtist.artist4.selectedIndex <= 0)) {
       alert("Please select an artist from one of the lists before pressing Go.");
       return false;
  }
  return true;
}  

function requireCategoryValues (listCategory) {
  if ((listCategory.genre.value == "Genre") && 
     (listCategory.region.value == "Unknown") && 
     (listCategory.status.selectedIndex <= 0) && 
     (listCategory.signed.selectedIndex <= 0)) {
       alert("Please select a value from one of the category lists before pressing Go.");
       return false;
  }
  return true;
}