/**
 * 保存文章的评论
 */
function savecomment()
{//
	var_f = document.cf;//表单名称
	var commentcontent = getobject("content").value.trim();//评论内容
	var guestname = getobject("name").value.trim();//评论人名称
	var fromvalue = getobject("from").value.trim();//来自
	var articletype = parseInt(getobject("type").value.trim());//文章类型
	var articleid = parseInt(getobject("id").value.trim());//文章ID
	var anonymous = getobject("anony").checked;//是不否匿名
	if ((articleid > 0) &&( commentcontent != "") && (articletype > 0) && (anonymous || guestname != ""))
	{
		var url = "operatorcomment.php?op=0&content=" + commentcontent + "&type=" +  articletype + "&id=" + articleid ;//op=0保存操作
		if (anonymous)
		{
			url += "&anony=1"; 
		}
		else
		{
			url += "&name=" + guestname + "&from=" + fromvalue;
		}
		xmlHttp1=GetXmlHttpObject(saveresult);
		xmlHttp1.open("GET", url , true);
		xmlHttp1.send(null);
	}
}
/**
 * 删除指定的评论
 */
function deletecomment(commentid)
{
	;
}
