function toggle_block_visib (img,divid) {
	var block=document.getElementById(divid);
	
	if (block) {
		if (block.style.display=='block') {
			block.style.display='none';
			img.src='/style/plus_dunkel.gif';
			}
		else {
			block.style.display='block'; 
			img.src='/style/minus_dunkel.gif';
			}
		}
	}

function set_all_searchcat (cval) {
	if (search_cat_fields && search_cat_fields.length >0) {
		for (i=0;i<search_cat_fields.length;i++) if (document.getElementById('searchcat'+search_cat_fields[i])) document.getElementById('searchcat'+search_cat_fields[i]).checked=cval;
		}
	if (cval==true && document.getElementById('extsearchcat').style.display=='none') {
		toggle_block_visib (document.getElementById('extsearchcatimg'),'extsearchcat');
		}
	}
	
	
function guestalert () {
	alert('Als Gast können Sie keine Anlagen downloaden.');
	return false;
	}
	

var switchCompanyAspects = function (el_off, el_on) {
	document.getElementById(el_off).style.display = 'none';
	document.getElementById(el_on).style.display = 'block';
}
