function reloadMsg(obj,cid)
{
	var loadUrl = '/ajaxinc/vmsg_vms.php';

	$.get(loadUrl,{cid:cid},function(html){
		$(obj).empty();
		$(obj).append(html);
	  });
}


function checkAddForm()
{
	if(document.form1.title.value.length==0)
	{
    alert("标题不可以为空，请输入!");
	  document.form1.title.focus();
	  return false;
	}
	

	if(document.form1.content.value.length==0)
	{
    alert("内容不可以为空，请输入内容!");
	  document.form1.content.focus();
	  return false;
	}
	else
	{
		if(document.form1.content.value.length>3500 || document.form1.content.value.length<3)
		{
				alert("内容不可以过短或者过长，请重新输入!");
				document.form1.content.focus();
				return false;
		}
		else return true;
	}


	if(document.form1.checkcode.value.length==0)
	{
    alert("验证码不可以为空，请输入验证码!");
	  document.form1.checkcode.focus();
	  return false;
	}
	else 
	{
		var Reg_Fnum = /^\d{4}$/;
		if(Reg_Fnum.test(document.form1.checkcode.value)==false)
		{
		  alert("验证码只能是四位数字!");
			document.form1.checkcode.focus();
			return false;
		}
	}
	
	return true;
}