
var text1 = "a-desc",
	text2 = "a-desc2"

function toggleComp(id, idSource){
	var comp = document.getElementById(id);
	var compSource = document.getElementById(idSource);
	if(!comp || !compSource) return;

	if(compSource.className == text1){
		compSource.className = text2;
		
		comp.style.visibility = 'visible';
		comp.style.display = 'block';
	}else{
		compSource.className = text1;
		comp.style.visibility = 'hidden';
		comp.style.display = 'none';
	}
	
}
