
function show_metager_is_working() {
	var background = document.createElement('div');
	background.style.position="absolute";
	background.style.top="0";
	background.style.left="0";
	background.style.width="100%";
	background.style.height="100%";
	background.style.backgroundImage="url(/semitransparent.png)";
	background.style.backgroundRepeat="repeat";
	
	var container = document.createElement('div');
	container.style.margin="auto";
	container.style.marginTop="10em";
	container.style.padding="1em";
	container.style.width="30em";
	container.style.background="white";
	
	var box = document.createElement('div');
	box.style.border="1px solid rgb(6, 81, 157)";
	box.style.padding="1ex";
	box.style.textAlign="center";
	
	var title = document.createElement('h3');
	title.style.textAlign="center";
	title.appendChild(document.createTextNode('MetaGer sucht...'));
	
	var image = document.createElement('img');
	image.alt="Bitte warten bis das MetaGer-Ergebnis geladen wurde.";
	image.border="0";
	image.src="/laden.gif";
	
	box.appendChild(title);
	box.appendChild(image);
	container.appendChild(box);
	background.appendChild(container);
	document.body.insertBefore(background, document.body.firstChild);
	return true;
}

function showConfigBox() {
	document.getElementById("config_box").style.display = 'block';
	var sw = document.getElementById("config_box_switch");
	sw.firstChild.src = '/images/minus.gif';
	sw.onclick = hideConfigBox;
	return false;
}
function hideConfigBox() {
	document.getElementById("config_box").style.display = 'none';
	var sw = document.getElementById("config_box_switch");
	sw.firstChild.src = '/images/plus.gif';
	sw.onclick = showConfigBox;
	return false;
}

function checkSearchsites(tagclass, checked) {
	var tds = document.getElementsByTagName('td');
	for(var e = 0; e < tds.length; e++) {
		if(tds[e].className == tagclass) {
			for(var c = 0; c < tds[e].childNodes.length; c++) {
				if(tds[e].childNodes[c].nodeType == 1 && tds[e].childNodes[c].tagName == 'INPUT' && tds[e].childNodes[c].type == 'checkbox') {
					tds[e].childNodes[c].checked = checked;
				}
			}
		}
	}
}





