function hideDivArea(str_area_hide){
	tag = document.getElementsByTagName("div");
	for(x=0;x<tag.length; x++){
		if(tag[x].getAttribute('id').indexOf(str_area_hide) != -1){
			tag[x].style.display = "none";
		}
	}
}

function showDivArea(areas_show, areas_hide){
	for (var i = 0; i < areas_show.length; i++){
		ge = document.getElementById(areas_show[i]);
		ge.style.display = "block";
	      for (var i = 0; i < areas_hide.length; i++){
		      ge = document.getElementById(areas_hide[i]);
		      ge.style.display = "none";
	      } 
	}
} 

function hideSpanArea(str_area_hide){
	tag = document.getElementsByTagName("span");
	for(x=0;x<tag.length; x++){
		if(tag[x].getAttribute('id').indexOf(str_area_hide) != -1){
			tag[x].style.display = "none";
		}
	}
}

function showSpanArea(areas_show, areas_hide){
	for (var i = 0; i < areas_show.length; i++){
		ge = document.getElementById(areas_show[i]);
		ge.style.display = "block";
		ge = document.getElementById(areas_hide[i]);
		ge.style.display = "none";
	}
} 

function changecolor_loginout_in() {
	document.getElementById('loginout_button').src='http://www.hib-system.com/hib/files/navi_button_dgr.gif';
	document.getElementById('logout').style.color='#707173';
}

function changecolor_loginout_out() {
	document.getElementById('loginout_button').src='http://www.hib-system.com/hib/files/kundenbereich_btn.gif';
	document.getElementById('logout').style.color='#ffffff';
}

function changecolor_details_in(id, id2) {
	document.getElementById(id2).src='http://www.hib-system.com/hib/files/navi_button_green.gif';
	document.getElementById(id).style.color='#79840D';
	//alert('jo');
}

function changecolor_details_out(id, id2) {
	document.getElementById(id2).src='http://www.hib-system.com/hib/files/details_btn.gif';
	document.getElementById(id).style.color='#ffffff';
}