function font_large(){
 	var currentSize = parseFloat($("article").style.fontSize)
	$("article").style.fontSize=(currentSize+1)+"px";
	$("font_size").firstChild.innerHTML=$("article").style.fontSize;
	}
function font_small(){
	var currentSize = parseFloat($("article").style.fontSize)
	$("article").style.fontSize=(currentSize-1)+"px";
	$("font_size").firstChild.innerHTML=$("article").style.fontSize;
	}
function font_normal(){
	$("article").style.fontSize="12px";
	$("font_size").firstChild.innerHTML=$("article").style.fontSize;
}
function check(){
	var text=$("comment_text").value
	var author=$("f_author").value
	if(text.length<=0){
		alert("请填写内容");
		return 0;
	}
	if(author.length<=0){
		alert("请填写用户名");
		return 0;
	}
	if(text.length>400){
		alert("文章过长，请勿超过400字");
		return 0;
	}
	if(author.length>10){
		alert("用户名过长，请勿超过10字");
		return 0;
	}
}
function $(id){
	return document.getElementById(id);
}
