function add_memo(txt){
	if(txt=="") return;
	
	now = new Date(); 
	hour = now.getHours(); // 時 
	min = now.getMinutes(); // 分
	
	ajax(txt);
}
function ajax(txt){
	para = "ajaxmemo="+txt;
	myAjax = new Ajax.Request(
		"inc/writememo.php", 
		{
			method: "post", 
			parameters: para,
			onComplete: function(re){
				alert(re.responseText);
				if(re.responseText=="Succeed"){
					html="<li class=\"memo\">"+txt+" (--- "+hour+"時"+min+"分)</li>";
					$("memobody").innerHTML+=html;
				}
			}
		}
	);
}
