function toggle_comments(name, num_comments) {
	div = document.getElementById(name + "_div");
	ctl = document.getElementById(name + "_ctl");

	if (div.style.visibility == "visible") {
		div.style.display = "none";
		div.style.visibility = "hidden";
		ctl.innerHTML = "View Comments (" + num_comments + ")";
	} else {
		div.style.display = "block";
		div.style.visibility = "visible";
		ctl.innerHTML = "Hide Comments";
	}
}

function open_comment_form(url) {
	window.open(url, 'popup', 'resizable, width=500, height=450');
}
