function  check_form()
         {
           if(window.document.myform.renname.value=="")
           {
                  alert("请输入姓名");
                  document.myform.renname.focus();
                  return false;
           }
		   
		   if(document.myform.age.value =="" || (!IsInt(document.myform.age.value)))
          {
                 alert("请输入年龄或输入有误!");
                 document.myform.age.focus();
                 return false;
          }
		  if(!(myform.gender[0].checked || myform.gender[1].checked))
          {
              alert("请选择性别")
              return false;
         }
		 if(window.document.myform.address.value=="")
           {
                  alert("请输入住址");
                  document.myform.address.focus();
                  return false;
           }
		   
		 if(document.myform.zip.value =="" || (!IsInt(document.myform.zip.value)))
          {
                 alert("请输入邮编或输入有误!");
                 document.myform.zip.focus();
                 return false;
          }
		  //验证电子邮件
      if(document.myform.email.value == null ||document.myform.email.value == "")
      {
              alert("请输入电子邮件地址!");
              document.myform.email.focus();
              return false;
      }
      if(!ValidateEmail(document.myform.email.value))
      {
              alert("电子邮件地址输入有误");
              document.myform.email.focus();
              return false;
      }

		   if(window.document.myform.study.value=="")
           {
                  alert("请输入教育程度");
                  document.myform.study.focus();
                  return false;
           }
		   if(window.document.myform.proficiency.value=="")
           {
                  alert("请输入所学专业");
                  document.myform.proficiency.focus();
                  return false;
           }
		   if(window.document.myform.job.value=="")
           {
                  alert("请输入应聘职位");
                  document.myform.job.focus();
                  return false;
           }
		   if(window.document.myform.jobaddres.value=="")
           {
                  alert("请输入工作地点");
                  document.myform.jobaddres.focus();
                  return false;
           }
		   if(window.document.myform.files.value=="")
           {
                  alert("请上传附件");
                  document.myform.files.focus();
                  return false;
           }

	   
		   return true;
		   
	}

	function ValidateEmail(email)
         {
            var re=/^[\w.-]+@([0-9a-z][\w-]+\.)+[a-z]{2,3}$/i;
            if(re.test(email))
            return true;
            else
            return false;
         }

	function IsInt (s)
         {
              var re = /^\d+$/;
              return re.test(s);
         }
