// JavaScript Document
function showonlyone(thechosenone,thea) {
      var newboxes = document.getElementsByTagName("div");
	  var  arraya = document.getElementsByTagName("a");
	  
				for(var x=0; x<newboxes.length; x++) {
					  name = newboxes[x].getAttribute("name");
					  
					  if (name == 'newboxes') {
							if (newboxes[x].id == thechosenone) 
							{
								newboxes[x].style.height = 'auto';
								newboxes[x].style.display = 'block';
							  } else {
									newboxes[x].style.display = 'none';
									newboxes[x].style.height = '0';
							  }
					}
				}
				
					 for(var x=0; x<arraya.length; x++) {
						  name = arraya[x].getAttribute("name");
						  
							  if (name == 'thea') {
									if (arraya[x].id == thea) {
										arraya[x].setAttribute('class','cao');
									
									  }
									  else {
										
											arraya[x].setAttribute("class","ff");
									  }
							  }
						
		  				}
	  
	  
	
}

