var editmode=''
function switchLawyer(lawyerID){
	curLawyer=document.getElementById(lawyerID)
	dict=document.getElementById("lawyerXML")
	document.getElementById("lawyerFrametitle").innerHTML=unescape(curLawyer.getAttribute("Name")) + " <SPAN style='font-size:10px'>(" + unescape(curLawyer.getAttribute("MyTitle")) +")</SPAN>"
	curContent="<BR>"
	if (!(curLawyer.getAttribute("pa")=="")){
		curContent=curContent+ "<STRONG>"+dict.getAttribute("PA")+"</STRONG><BR>"
		curContent=curContent+ unescape(curLawyer.getAttribute("pa")) + "<BR>"
	}
	if (curLawyer.getAttribute("Gender")=="M"){
		curContent=curContent+"<STRONG>"+dict.getAttribute("ATP_M")+"</STRONG><BR>"
	}else{
		curContent=curContent+"<STRONG>"+dict.getAttribute("ATP_F")+"</STRONG><BR>"
	}
	curContent=curContent+ unescape(curLawyer.getAttribute("adp")) + "<BR><BR>"
	curContent=curContent+"<STRONG>"+dict.getAttribute("Education")+"</STRONG><BR>"
	curContent=curContent+ unescape(curLawyer.getAttribute("Education")) + "<BR><BR>"
	curContent=curContent+"<STRONG>"+dict.getAttribute("email")+"</STRONG>: "
	curContent=curContent+ unescape(curLawyer.getAttribute("email")) + "<BR><BR>"
	//curContent=curContent+"<STRONG>"+dict.getAttribute("PE")+"</STRONG>: "
	//curContent=curContent+ unescape(curLawyer.getAttribute("Phn-ext")) + "<BR><BR>"
	document.getElementById("lawyerFramecontent").innerHTML=curContent
	document.getElementById("lawyerFrameimage").src=curLawyer.getAttribute("Image")
}

function hideElement(element_id){
   if (document.getElementById && document.getElementById(element_id) && document.getElementById(element_id).style)
   {
  document.getElementById(element_id).style.visibility="hidden";
   document.getElementById(element_id).style.display="none"
   };
}
function showElement(element_id){
   if (document.getElementById && document.getElementById(element_id) && document.getElementById(element_id).style)
   {
  document.getElementById(element_id).style.visibility="visible";
   document.getElementById(element_id).style.display=""
   };
}

function showsection(secName,hideSecName){
	if (selected==secName){
		secRows=document.getElementsByName(secName)
		for (i=0;i<secRows.length;i++){
			hideElement(secName+secRows[i].id)
		}

		selected=""
	}else{
		secRows=document.getElementsByName(secName)
		for (i=0;i<secRows.length;i++){
			showElement(secName+secRows[i].id)
		}
		secRows=document.getElementsByName(hideSecName)
		for (i=0;i<secRows.length;i++){
			hideElement(hideSecName+secRows[i].id)
		}
		selected=secName
	
	}
	
}

