	function menuOver(item) {
		item.style.backgroundColor='#D5D4BA';
	}

	function menuOut(item) {
		item.style.backgroundColor='#EEEDD8';
	}

	function menuShow(item, id) {
		menu = document.getElementById(id); 
		menuOver(item);
		y = 1;
		x = item.offsetWidth+10;
		menu.style.visibility = 'visible';
		menu.style.left = x;
		menu.style.top = y;
	}

	function menuHide(item, id) {
		menu = document.getElementById(id); 
		menuOut(item);
		menu.style.visibility = 'hidden';
	}

	function checkAll (what) {
		var status = document.getElementById("flag").checked;
		var coll = what.elements;
		for (i=0; i<coll.length; i++) {
			if (coll[i].type == "checkbox") {
				if (status) {
					coll[i].checked = true;
				}
				else {
					coll[i].checked = false;	
				}
			}
		}
	}

	function displayForm(id) {
		document.getElementById(id).style.display='block';
	}

	function render () {
		if (document.getElementById("tools")) {
			document.getElementById("pageContent").style.height = document.getElementById("tools").offsetHeight - 100;
		}
	}
