// JavaScript Document

function cf_msg(){
	if(document.msg.Content.value=="")	{
		alert("留言不能为空");
		document.msg.Content.focus();
		return false;
	}
	if(document.msg.checkcode.value=="" || document.msg.checkcode.value.length!=4){
		alert("验证码输入有误");
		document.msg.checkcode.focus();
		return false;
	}
	return true;
}

function refreshImg(e){	
	e.src='checkcode.php?t='+Math.random();
}