function quikefile(){
	var form = document.quikfile;
	
	if (form.lei.value.replace(/ /g,"")==""){
		alert("请选择您要发表的帖子的栏目");
		form.lei.focus();
		return false;
		}	
	
	if (form.title.value.replace(/ /g,"")==""){
		alert("发表帖子标题不能为空");
		form.title.focus();
		return false;
		}	
	if (form.title.value.replace(/ /g,"").length < 4){
		alert("发表帖子标题太短了,发表帖子标题长度不得少于４个字符");
		form.title.focus();
		return false;
		}	
	if (form.title.value.replace(/ /g,"").length > 50){
		alert("发表帖子标题太长了，发表帖子标题长度不得大于50个字符\n\n当前字符为："+ form.title.value.replace(/ /g,"").length +"个");
		form.title.focus();
		return false;
		}	
		
	if (form.conter.value.replace(/ /g,"")==""){
		alert("发表帖子内容不能为空");
		form.conter.focus();
		return false;
		}	
	if (form.conter.value.replace(/ /g,"").length < 4){
		alert("发表帖子内容太短了,发表帖子内容不得少于４个字符");
		form.conter.focus();
		return false;
		}	
	if (form.conter.value.replace(/ /g,"").length > 500){
		alert("发表帖子内容太长了，发表帖子内容不得多于500个字符\n\n当前字符为："+ form.conter.value.replace(/ /g,"").length +"个");
		form.conter.focus();
		return false;
		}
	
	if (form.name.value.replace(/ /g,"")==""){
		alert("呢　称不能为空");
		form.name.focus();
		return false;
		}	
	if (form.name.value.replace(/ /g,"").length < 2){
		alert("呢称太短了");
		form.name.focus();
		return false;
		}	
	if (form.name.value.replace(/ /g,"").length > 15){
		alert("呢称太长了");
		form.name.focus();
		return false;
		}	
	
	if (form.code.value.replace(/ /g,"")==""){
		alert("验证码不能为空");
		form.code.focus();
		return false;
		}
	if (isNaN(form.code.value.replace(/ /g,""))){
		alert("验证码必须为数字");
		form.code.focus();
		return false;
		}
return true;	
}

function quikehui(){
	var form = document.quikform;
		
	if (form.conter.value.replace(/ /g,"")==""){
		alert("回复内容不能为空");
		form.conter.focus();
		return false;
		}	
	if (form.conter.value.replace(/ /g,"").length < 4){
		alert("回复内容太短了,回复内容不得少于４个字符");
		form.conter.focus();
		return false;
		}	
	if (form.conter.value.replace(/ /g,"").length > 500){
		alert("回复内容太长了，回复内容不得多于500个字符\n\n当前字符为："+ form.conter.value.replace(/ /g,"").length +"个");
		form.conter.focus();
		return false;
		}
	
	if (form.name.value.replace(/ /g,"")==""){
		alert("呢　称不能为空");
		form.name.focus();
		return false;
		}	
	if (form.name.value.replace(/ /g,"").length < 2){
		alert("呢称太短了");
		form.name.focus();
		return false;
		}	
	if (form.name.value.replace(/ /g,"").length > 15){
		alert("呢称太长了");
		form.name.focus();
		return false;
		}	
	
	if (form.code.value.replace(/ /g,"")==""){
		alert("验证码不能为空");
		form.code.focus();
		return false;
		}
	if (isNaN(form.code.value.replace(/ /g,""))){
		alert("验证码必须为数字");
		form.code.focus();
		return false;
		}
return true;	
}

function topcheack(){
	var form =  document.topform;
	if (form.keytext.value.replace(/ /g,"") == ""){
		alert("搜索关键字不能为空,请输入您要搜索的关键字");
		form.keytext.focus();
		return false;
		}
return true;
}

