function isEmail(str)
{
	reg=/^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|com|gov|mil|org|edu|int)$/;
	
	return reg.test(str);
}
	function check()
	{

//		if (document.feedback.Company.value=="")
//		{
//			alert("请输入您的公司名称！");
//			document.feedback.Company.focus();
//			return false;
//		}
		if (document.feedback.Name.value=="")
		{
			alert("请输入您的姓名！");
			document.feedback.Name.focus();
			return false;
		}
//		if (document.feedback.Tel.value=="")
//		{
//			alert("请输入您的联系电话！");
//			document.feedback.Tel.focus();
//			return false;
//		}
		if (document.feedback.Email.value=="")
		{
			alert("请输入您的电子邮件地址！");
			document.feedback.Email.focus();
			return false;
		}
		
		if(!isEmail(document.feedback.Email.value))
		{
			alert("E-mail格式错误！");
			document.feedback.Email.focus();
			return false;
		}

//if (document.feedback.Address.value=="")
//		{
//			alert("请输入您的联系地址！");
//			document.feedback.Address.focus();
//			return false;
//		}
//		if (document.feedback.Postcode.value=="")
//		{
//			alert("请输入您的邮政编码！");
//			document.feedback.Postcode.focus();
//			return false;
//		}
		if (document.feedback.Content.value=="")
		{
			alert("请输入您的咨询内容！");
			document.feedback.Content.focus();
			return false;
		}
	}

// JavaScript Document
