﻿var t1,t2,t3,t4;
function mes_save(form,lan){
	if(lan){
		t1="恭喜，留言成功！";
		t2="请输入正确的验证码！";
		t3="带*的为必填项！"
		t4="验证码不能为空！"
	}else{
		t1="Congratulations, information to the success!";
		t2="Please input right code！";
		t3="* are required！"
		t4="Identifying code must input！"
	}
	var valuestr=getFormValue(form);
	if(valuestr.indexOf("{false}")>=0||valuestr=="")return false;
	if(!posted){ajax_post(webpath+"fun/feedback/mes_save.asp",valuestr);posted=true;}
	return false;
}

function ajax_post2(sec){
	if(sec.indexOf("{+OK+}")>=0){
		sucgoto("<b>"+t1+"</b>",'self',3);
	}else{
		posted=false;
		if(sec.indexOf("{+Nocode+}")>=0)sec=t2;
		if(sec.indexOf("{+must+}")>=0)sec=t3;
		if(sec.indexOf("{+null+}")>=0)sec=t4;
		sucgoto("<u>"+sec+"</u>","",5);
	}
}
