function check(){
	var title = document.form1.title.value;
	var content = document.form1.content.value;
	var man = document.form1.man.value;
	var tel = document.form1.tel.value;
	var fax = document.form1.fax.value;
	var email = document.form1.email.value;
	var handset = document.form1.handset.value;
	if(title == ""){
		document.form1.title.focus();
		alert("请输入标题");
		return false;
	}
	else if(title.length>50){
		document.form1.title.focus();
		alert("标题不能大于50字");
		return false;
	}
	if(content == ""){
		document.form1.content.focus();
		alert("请输入内容");
		return false;
	}
	else if(content.length>1000){
		document.form1.content.focus();
		alert("内容不能大于1000字");
		return false;
	}
	if(man ==""){
		document.form1.man.focus();
		alert("请输入联系人");
		return false;
	}
	if(email !=""){
		var str = new String();				
		str = /^\w+([-+.]\w+)*@\w+([-.]\\w+)*\.\w+([-.]\w+)*$/;
		if (!email.match(str)){			
			document.form1.email.focus();
  			alert("邮箱地址不正确!");
			return false;
			}
	}
	if(tel == ""){
		document.form1.tel.focus();
		alert("请输入电话号码");
		return false;
	}
	else{
		var reg = new String();
		reg = /^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/;
		if(!tel.match(reg)){
			document.form1.tel.focus();
			alert("电话号码不正确");
			return false;
		}
	}
	if(handset != ""){
		var patrn = new String();
    	patrn=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;
    	if (!handset.match(patrn)){
   			document.form1.handset.focus();
    		alert("手机号码不正确");
    		return false;
    	}   
	}
	if(fax != ""){
		var reg = new String();
		reg = /^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/;
		if(!fax.match(reg)){
			alert("传真号码不正确");
			document.form1.fax.focus();
			return false;
		}
	}
}