<!--
function opennew(url, left,top,width, height)
{
     var Win = window.open(url,"OpenNew",'width=' + width + ',height=' + height + ',left=' +left +',top=' + top +',resizable=1,scrollbars=yes,menubar=no,status=yes');
} 

function CheckLyInput()   //留言信息输入验证
{
    ff=document.lyb
    if (ff.company.value=="")
    {
      window.alert("公司名称不能为空！")
      ff.company.focus()
      return false
    } //end if
    
    if (ff.lxlname.value=="")
    {
      window.alert("联系人不能为空！")
      ff.lxlname.focus()
      return false
    } //end if
    
    if (ff.phote.value=="")
    {
      window.alert("联系电话不能为空！")
      ff.phote.focus()
      return false
    } //end if
    
     var dh=ff.phote.value
     var num=dh.length
     at=dh.indexOf('-')
     if ((dh.substring(at,num).length>9) || (dh.substring(at,num).length<8) || (dh.substring(0,at).length>4) || (dh.substring(0,at).length<3) || (isNaN(dh.substring(0,at))==true) || (isNaN(dh.substring(at))==true) || at==0 || (at==-1) || (at==num-1))  
      {
       window.alert("不是有效的电话格式！")
       ff.phote.focus();
       return false
      }

    if (ff.email.value=="")
     {
      window.alert("Email地址不能为空！")
      ff.email.focus()
      return false
    } //end if
   
    if (ff.email.value.length>0 && !ff.email.value.match( /^.+@.+$/ ))
    {
      window.alert("您的email输入不正确！")
      ff.email.focus()
      return false
    } //end if 
    
   if (ff.content.value=="")
   {
      window.alert("留言内容不能为空！")
      ff.content.focus()
      return false
   } //end if
    
   if (confirm("请您确认填写内容正确无误\n\n您确认提交吗?")==false) return false;
   else 
       {
        ff.sub1.disabled=true;
        ff.sub2.disabled=true;
        return true;
       }  //end else
} //end function

function CheckYpInputer()  //求职信息输入验证
{
   ff=document.yp
   if (ff.xm.value=="")
    {
      window.alert("姓名不能为空！")
      ff.xm.focus()
      return false
    } //end if 
    
   if (ff.year1.value=="")
   {
      window.alert("出生年月不能为空！")
      ff.year1.focus()
      return false
    } //end if
 
    if (ff.school.value=="")
    {
      window.alert("毕业学校不能为空！")
      ff.school.focus()
      return false
    } //end if
  
   if (ff.zy.value=="")
   {
      window.alert("所学专业不能为空！")
      ff.zy.focus()
      return false
   }  //end if

    if (ff.phote.value=="")
    {
      window.alert("联系电话不能为空！")
      ff.phote.focus()
      return false
    } //end if
   
     var dh=ff.phote.value
     var num=dh.length
     at=dh.indexOf('-')
     if ((dh.substring(at,num).length>9) || (dh.substring(at,num).length<8) || (dh.substring(0,at).length>4) || (dh.substring(0,at).length<3) || (isNaN(dh.substring(0,at))==true) || (isNaN(dh.substring(at))==true) || at==0 || (at==-1) || (at==num-1))  
      {
       window.alert("不是有效的电话格式！")
       ff.phote.focus();
       return false
      }

    if (ff.email.value=="")
    {
      window.alert("Email地址不能为空！")
      ff.email.focus()
      return false
    } //end if

    if (ff.email.value.length>0 && !ff.email.value.match( /^.+@.+$/ ))
    {
      window.alert("您的email输入不正确！")
      ff.email.focus()
      return false
    } //end if 

   if (ff.post.value=="")
   {
      window.alert("应聘岗位不能为空！")
      ff.post.focus()
      return false
   } //end if

  if (ff.content.value=="")
   {
      window.alert("留言内容不能为空！")
      ff.content.focus()
      return false
   } //end if 

   if (confirm("请您确认填写内容正确无误\n\n您确认提交吗?")==false) return false;
   else 
     {
        ff.sub1.disabled=true;
        ff.sub2.disabled=true;
        return true;
     } //end if 
 } //end function

function CheckZsInput()    //招商信息输入验证
 {
    ff=document.zs
    if (ff.gsmc.value=="")
    {
      window.alert("公司名称不能为空！")
      ff.gsmc.focus()
      return false
    } //end if
    
   if (ff.gsxz.value=="")
   {
      window.alert("请选择公司性别！")
      ff.gsxz.focus()
      return false
    } //end if
   
   if (ff.gsjj.value=="")
   {
      window.alert("公司基本简介不能为空！")
      ff.gsjj.focus()
      return false
    } //end if
   
  
  if (ff.cpjj.value=="")
   {
      window.alert("产品介绍不能为空！")
      ff.cpjj.focus()
      return false
   } //end if

   if (ff.lxl.value=="")
   {
      window.alert("联系人不能为空！")
      ff.lxl.focus()
      return false
    } //end if
   
     
   if (ff.phote.value=="")
   {
      window.alert("电话不能为空！")
      ff.phote.focus()
      return false
    } //end if 
  
     var dh=ff.phote.value
     var num=dh.length
     at=dh.indexOf('-')
    if ((dh.substring(at,num).length>9) || (dh.substring(at,num).length<8) || (dh.substring(0,at).length>4) || (dh.substring(0,at).length<3) || (isNaN(dh.substring(0,at))==true) || (isNaN(dh.substring(at))==true) || at==0 || (at==-1) || (at==num-1))  
      {
       window.alert("不是有效的电话格式！")
       ff.phote.focus();
       return false
      }

    if (ff.email.value=="")
     {
      window.alert("Email地址不能为空！")
      ff.email.focus()
      return false
    } //end if
   
    if (ff.email.value.length>0 && !ff.email.value.match( /^.+@.+$/ ))
    {
      window.alert("您的email输入不正确！")
      ff.email.focus()
      return false
    } //end if 
   
   if (ff.yb.value!=""&& isNaN(ff.yb.value))
   {
      window.alert("邮编必须为数字！")
      ff.yb.focus()
      return false
    } //end if

   if (ff.hzyc.value=="")
   {
      window.alert("合作意向不能为空！")
      ff.hzyc.focus()
      return false
    } //end if
   
    if (confirm("请您确认填写内容正确无误\n\n您确认提交吗?")==false) return false;
     else 
       {
        ff.sub1.disabled=true;
        ff.sub2.disabled=true;
        return true;
       } //end else
 } //end function
-->
