function setLogo(theElement,theWrapper) {

	//get the id of the image clicked on
	var imageid = theElement.getAttributeNode('id').value;
	//set it in the hidden form object to be saved
	window.document.theform.logoid.value = imageid;
	
	//Get the list of image elements
	var theImageElements = getElementsByClass('imageElement',theWrapper);

	for(i=0; i<theImageElements.length; i++) {
		//Set all elements bgcolor to grey
		theImageElements[i].style.backgroundColor = "#eeeeee";
	}
	//Now set the one you clicked on to yellow
	theElement.style.backgroundColor = '#DADD55';
	
}