// checks categories are correct for a given gallery

//This function has been removed and is no longer wanted.

function checkCategorySelection() {
/*	var welsh   = new Array("portraits", "landscapes", "various", "objects");
	var british = new Array("portraits", "landscapes", "country houses", "various");
	
	var theGallery = (document.getElementById("welshOption").checked)? "Welsh Gallery" : "British Gallery";
	var currentValue = this.value;
	if(this.options[currentValue])
		var currentSelection = this.options[currentValue].innerHTML.toLowerCase();
	else return;
	
	var toCheckAgainst = (document.getElementById("welshOption").checked)? welsh : british;
	if(document.getElementById("bothOption")) 
		if(document.getElementById("bothOption").checked) return;
	var okay = false;
	for (var i in toCheckAgainst) {
		if(currentSelection.indexOf(toCheckAgainst[i])>=0) okay = true;
	}
	if(!okay) alert("Warning, this category may NOT be used by the "+theGallery+" and therefore may not produce any search results."); 
*/
}

