	function toggle(targetId ){
		 if (document.getElementById){
			target = document.getElementById(targetId);
				if (target.style.display == "none"){
					target.style.display = "";
				} else {
					target.style.display = "none";
				}
			}
		}
		
function showhide(targetId){
		 if (document.getElementById){
		 	target = document.getElementById(targetId);
					if (target.style.display == ""){
						target.style.display = "none";
					    } 
					 else {
						target.style.display = "";
					    } 
						
			}	
		
}


function show(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.display = "";
			}	
		
}	

function hide(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.display = "none";
			}	
		
}


function changeTitleBG(targetId1,targetId2,targetId3){

		 if (document.getElementById){
		 	target1 = document.getElementById(targetId1);
			target2 = document.getElementById(targetId2);
			target3 = document.getElementById(targetId3);			
			//alert(target1.style.background)
					 if (target1.style.background == "url(images/icons/link.gif) no-repeat 100% 6px" || target1.style.background == "transparent url(images/icons/link.gif) no-repeat scroll 100% 6px"){
						 target1.style.background = "url(images/icons/window_close2.gif) no-repeat 99% 3px";
						 target1.style.color = "#FFF";
						 target1.style.marginLeft = "4px";						 
						 target1.style.fontWeight = "bold";
						 target2.style.background = "url(images/elements/bg.gif)";
						 target2.style.marginBottom = "4px";
						 target3.style.display = "none";						 
					 						 						 
					    } 
					 else {
						target1.style.background = "url(images/icons/link.gif) no-repeat 100% 6px";
						target1.style.color = "#D85C0B";
						target1.style.marginLeft = "0";						 
						target1.style.fontWeight = "normal";						
						target2.style.background = "url(images/elements/underline.gif) repeat-x 0 100%";
						target2.style.marginBottom = "0px";						
						target3.style.display = "";						
					    }
			}	
		
}





function showhide_curr(selObj,targetId){
	
var selectedoption = selObj.options[selObj.selectedIndex].value;
selectedoption = selectedoption.split("-");
selectedoption = selectedoption[1];
selectedoption = trimAll(selectedoption)

divtargetId = 'div' + targetId;

divtargetId11 = divtargetId + '1';
divtargetId12 = divtargetId + '2';
divtargetId13 = divtargetId + '3';

		 if (document.getElementById){
			divtarget11 = document.getElementById(divtargetId11);
			divtarget11.style.display = "none";
			divtarget12 = document.getElementById(divtargetId12);
			divtarget12.style.display = "none";
			divtarget13 = document.getElementById(divtargetId13);
			divtarget13.style.display = "none";	
			
			divtargetS = divtargetId + selectedoption;
			divtarget = document.getElementById(divtargetS);
			divtarget.style.display = "";

			}
		
}

function trimAll(sString){

	while (sString.substring(0,1) == ' ')
		{
		sString = sString.substring(1, sString.length);
		}
	while (sString.substring(sString.length-1, sString.length) == ' ')
		{
		sString = sString.substring(0,sString.length-1);
		}
	return sString;

}









