function ccccc(theForm)
{
var today=new Date();
var yxm=theForm.xm.value;
  if (yxm=="" | yxm.length<2 | yxm.length>30)
  {
    alert("请正确输入个人姓名!");
    theForm.xm.focus();
    return (false);
  }
var date1=theForm.t1.value;
if (date1=="" | isNaN(date1) | date1<today.getYear()-100 | date1>today.getYear())
		{
		alert("请正确输入出生日期!");
		theForm.t1.focus();
		return false;
		}
	var date1=theForm.t18.value;
	if (date1=="" | date1<1 | date1>12 | isNaN(date1))
		{
		alert("请正确输入出生日期月份!");
		theForm.t18.focus();
		return false;
		}
	var date1=theForm.t19.value;
	if (date1=="" | date1<1 | date1>31 | isNaN(date1))
		{
		alert("请正确输入出生日期!");
		theForm.t19.focus();
		return false;
		}
var jzd=theForm.t5.value;
  if (jzd == "" | jzd.length < 4 | jzd.length >50)
  {
    alert("请输入 \"居住地址\" !");
    theForm.t5.focus();
    return (false);
  }

var date1=theForm.t6.value;
if (date1=="" | isNaN(date1) | date1<today.getYear()-100 | date1>today.getYear())
		{
		alert("请正确输入毕业时间!");
		theForm.t6.focus();
		return false;
		}
	var date1=theForm.t16.value;
	if (date1=="" | date1<1 | date1>12 | isNaN(date1))
		{
		alert("请正确输入毕业时间月份!");
		theForm.t16.focus();
		return false;
		}
	var date1=theForm.t17.value;
	if (date1=="" | date1<1 | date1>31 | isNaN(date1))
		{
		alert("请正确输入毕业时间!");
		theForm.t17.focus();
		return false;
		}

  if (theForm.S1.value.length > 255)
  {
    alert("主要技能及登记情况过长");
    theForm.S1.focus();
    return (false);
  }

  if (theForm.S2.value.length > 255)
  {
    alert("主要工作和学习简历过长!");
    theForm.S2.focus();
    return (false);
  }

  if (theForm.T10.value == "" | isNaN(theForm.T10.value))
  {
    alert("请输入 \"身高\" !");
    theForm.T10.focus();
    return (false);
  }

  if (theForm.T10.value.length < 3)
  {
    alert("请入 \"身高\" ,单位为厘米!");
    theForm.T10.focus();
    return (false);
  }

  if (theForm.T10.value.length > 3)
  {
    alert("请入 \"身高\" ,单位为厘米!");
    theForm.T10.focus();
    return (false);
  }

  if (theForm.T11.value == "" | isNaN(theForm.T10.value))
  {
    alert("请输入 \"体重\" ！");
    theForm.T11.focus();
    return (false);
  }

  if (theForm.T11.value.length < 2)
  {
    alert("请输入“体重”,单位为公斤!");
    theForm.T11.focus();
    return (false);
  }

  if (theForm.T11.value.length > 3)
  {
    alert("请输入 \"体重\" ,单位为公斤！");
    theForm.T11.focus();
    return (false);
  }

  if (theForm.T12.value == "")
  {
    alert("请输入 \"联系人\" ！");
    theForm.T12.focus();
    return (false);
  }

  if (theForm.T12.value.length < 2)
  {
    alert("请输入 \"联系人\" ！");
    theForm.T12.focus();
    return (false);
  }

  if (theForm.T12.value.length > 10)
  {
    alert("请输入 \"联系人\" ！");
    theForm.T12.focus();
    return (false);
  }

  var mm = theForm.mail.value;
  if (mm!="")
{
if(mm.length < 7 | mm.length>50)
  {
    alert("如有Email，请正确输入!");
    theForm.mail.focus();
    return (false);
  }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-@._-";
  var checkStr = theForm.mail.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("如有Email，请正确输入!");
    theForm.mail.focus();
    return (false);
  }
}
  if (theForm.T13.value == "")
  {
    alert("请输入 \"联系地址\" ！");
    theForm.T13.focus();
    return (false);
  }

  if (theForm.T13.value.length < 4)
  {
    alert("请输入 \"联系地址\" ！");
    theForm.T13.focus();
    return (false);
  }

  if (theForm.T13.value.length > 60)
  {
    alert(" \"联系地址\" 最长30 个汉字！");
    theForm.T13.focus();
    return (false);
  }

  if (theForm.T14.value.length < 6)
  {
    alert("请输入 \"邮政编码\" ");
    theForm.T14.focus();
    return (false);
  }

  if (theForm.T14.value.length > 6)
  {
    alert("请输入 \"邮政编码\" ！");
    theForm.T14.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.T14.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("请输入 \"邮政编码\" ！");
    theForm.T14.focus();
    return (false);
  }

  if (theForm.T15.value == "")
  {
    alert("请输入 \"联系电话\" ！");
    theForm.T15.focus();
    return (false);
  }

  if (theForm.T15.value.length < 7)
  {
    alert("请输入 \"联系电话\" ！");
    theForm.T15.focus();
    return (false);
  }

  if (theForm.T15.value.length > 40)
  {
    alert("请输入 \"联系电话\" ！");
    theForm.T15.focus();
    return (false);
  }

  var checkOK = "0123456789()-:bp:BP ";
  var checkStr = theForm.T15.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("请输入 \"联系电话\",可以有()-BP:以及数字组成 ！");
    theForm.T14.focus();
    return (false);
  }
}
