// JavaScript Document
function checkfield(theForm){ 
	standardMsg = "Si vous recherchez l'index, veuillez cocher au moins une des rubriques:\nSujets, Documents, Personnes, Illustrations, Lieu!";
	//checking for selectionLists	
	 if(theForm.index.value.length > 0){
	 	checkBoxArray = new Array('ins','ind','inp','inl','ini');
		for(x = 0; x < checkBoxArray.length; x++){
			if(theForm.elements[checkBoxArray[x]].checked == true){
				return true;
			}
		}
		alert(standardMsg);
		return false;
	}else{
		return true;
	}
} // end checkfield()
