function toggleDiv(doc, name) {
	var div = doc.getElementById(name);
	div.style.display = (div.style.display == "block" ? "none" : "block");
}