/*******************************************************************************
	Description		: Javascript for memo
	Programmer		: Kim Dong-kyu (superkdk)
	Last Modified	: 2004.04.14
*******************************************************************************/
function write_memo(id) {
	var width = "200";
	var height = "210";

	if(id == "") url = "ttmemo.cgi?act=write";
	else url = "ttmemo.cgi?act=write&id="+id;

	window.open(url, "", "width="+width+", height="+height);
}

function reply_memo(id) {
	location.href = "ttmemo.cgi?act=write&id="+id;
}

function read_memo(idx) {
	var width = "200";
	var height = "210";

	window.open("ttmemo.cgi?act=read&idx="+idx, "", "width="+width+", height="+height);
}

function list_memo() {
	var width = "600";
	var height = "650";
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 3;

	var newwin = window.open("ttmemo.cgi?act=list", "", "width="+width+", height="+height+
		", left="+left+", top="+top+", resizable=1");
}
