<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Include/conn.asp" -->
<!--#include file="../Include/ConnDatabase.asp" -->
<!--#include file="../Include/NoHackSql.Asp" -->
<%
'=====================================
'天天企业网站管理系统  TianTianCMS
'天天网络科技工作室版权所有
'官方网站http://www.ip126.com
'技术支持论坛 http://bbs.ip126.com/
'QQ:530051328 mail:bbfhq@163.com
'=====================================
%>
<%call SiteInfo
headid=4
%>
<!--#include file="Siteinfo.asp" -->
<%call WebTitle(Recruitmentm,"TianTianCMS_Recruitment","JobName",request.QueryString("SortID"))%>
<!--#include file="Head.Asp" -->
<%dim mMemID,mMemName,mGroupIdName,mRealName,mSex,mQuestion,mCompany,mAddress,mZipCode,mTelephone,mFax,mMobile,mUserqq,mEmail,mHomepage,mAddTime,mLoginTimes,mLastLoginTime,mLastLoginIP
dim JobID,TalentsName,BirthDate,Stature,Marriage,RegResidence,EduResume,JobResume
JobID=request.QueryString("JobID")
TalentsName=request.QueryString("JobName")
if session("MemName")<>"" and session("MemLogin")="Succeed" then
  call MemInfo()
else
  mSex="Male"
  mMemID=0
end if
%>

<TABLE width="960" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
  <TR>
    <TD height="5"></TD>
  </TR>
  <TR> 
    <TD height="172" ><table width="960" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="tdbg_left"  width="190" height="179" valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="../images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;User Login 
                </td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                       
	<iframe src="login.asp"  frameborder="0" border="0px" scrolling="no" class="frame" height="120px" width="160px"></iframe>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="../images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;Recruitment</td>
              </tr>
 		<%=WebMenuRecruitment()%>

            </table>
			
			 <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="../images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;About Us</td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                  <%=AboutWebMenu(20,20,1,1)%>
 
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
			</td>
          <td width="6"></td>
          <td valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td class="
title_right" height="32">&nbsp;&nbsp;&nbsp;<img src="../images/smallbook.jpg" width="10" height="10">&nbsp;Submit resume</td>
                    </tr>
					<TR> 
              <TD height=1> 
				 
 
 <table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                            <td width="80%" height="18" bgcolor="#eeeeee"><%=WebLocationJl()%></td>
                        <td width="79%" bgcolor="#eeeeee">&nbsp; </td>
                  </tr>
                  <tr> 
                    <td height="1" colspan="2" bgcolor="#999999"></td>
                  </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#FBFEFF">
                  <tr> 
                    <td height="8"></td>
                  </tr>
                 
                  <tr> 
				 <td>
<script language="javascript">
<!--
//＝＝＝＝＝＝＝＝＝＝＝＝＝验证码正确性检测＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
//＝＝＝＝＝＝＝＝＝＝＝＝按钮有效性＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		var flag=[0,0,0,0,0,0,0,0];//这里设置按钮要判断的个数
		var $=function(tagName){
			return document.getElementsByTagName(tagName);
		}
//－－－－－－－－－检查数据,使提交按钮是否生效－－－－－－－－－－－－－
			function check_data(){
				if(flag[1]==1 && flag[2]==1 && flag[3]==1 && flag[4]==1 && flag[5]==1 && flag[6]==1 && flag[7]==1 && flag[8]==1){
					$("input")[id="input"].disabled=false;
				}
				else{
					$("input")[id="input"].disabled=true;
				}
			}
			function check_Linkman(id_name){				
                var reId=/^.{1,50}$/;//限1－50个字符
				var b_id=reId.test(id_name);
				if(!b_id){
					$("span")[id="Linkman"].innerHTML="<img src='../images/yesno.gif'/>Name for 1-50 characters";
					flag[1]=0;
					check_data();
				}
				else{
					$("span")[id="Linkman"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
					flag[1]=1;
				}
			}
        function check_BirthDate(name){
        var reId=/^\d{4}-\d{1,2}-\d{1,2}/;//日期格式
		var b_id=reId.test(name);
		if(!b_id){              
        $("span")[id="BirthDate"].innerHTML="<img src='../images/yesno.gif'/>Please enter the date format as：1988-08-18"; 
        flag[2]=0;
        check_data();
        }
		else{
		$("span")[id="BirthDate"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
		flag[2]=1;
		}
        }
        function check_Stature(name){
        var reId=/^([1-9][0-9]*)$/;//格式
		var b_id=reId.test(name);
		if(!b_id){
        //if($("input")[id="BirthDate"].value==""){        
        $("span")[id="Stature"].innerHTML="<img src='../images/yesno.gif'/>Please enter the height"; 
        flag[3]=0;
        check_data();
        }
		else{
		$("span")[id="Stature"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
		flag[3]=1;
		}
        }
			function check_RegResidence(id_name){				
                var reId=/^.{2,200}$/;//限2－200个字符
				var b_id=reId.test(id_name);
				if(!b_id){
					$("span")[id="RegResidence"].innerHTML="<img src='../images/yesno.gif'/>Requires 2-200 characters";
					flag[4]=0;
					check_data();
				}
				else{
					$("span")[id="RegResidence"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
					flag[4]=1;
				}
			}
        function check_Idcard(name){
	    var r15=/[1-6]\d{5}\d{2}(?:0\d|1[12])(?:0\d|[12]\d|3[01])\d{3}/;
	    var r18=/[1-6]\d{5}(?:19|20)\d{2}(?:0\d|1[12])(?:0\d|[12]\d|3[01])\d{3}[\dXx]/;
		var b_id15=r15.test(name);
		var b_id18=r18.test(name);
		if((!b_id15)&&(!b_id18)){      
        $("span")[id="Idcard"].innerHTML="<img src='../images/yesno.gif'/>Please enter the correct id"; 
        flag[5]=0;
        check_data();
        }
		else{
		$("span")[id="Idcard"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
		flag[5]=1;
		}
        }
			function check_EduResume(id_name){				
                var reId=/^.{2,1000}$/;//限2－1000个字符
				var b_id=reId.test(id_name);
				if(!b_id){
					$("span")[id="EduResume"].innerHTML="<img src='../images/yesno.gif'/>2-1000 characters content requirements";
					flag[6]=0;
					check_data();
				}
				else{
					$("span")[id="EduResume"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
					flag[6]=1;
				}
			}	
			function check_JobResume(id_name){				
                var reId=/^.{2,1000}$/;//限2－1000个字符
				var b_id=reId.test(id_name);
				if(!b_id){
					$("span")[id="JobResume"].innerHTML="<img src='../images/yesno.gif'/>2-1000 characters content requirements";
					flag[7]=0;
					check_data();
				}
				else{
					$("span")[id="JobResume"].innerHTML="<img src='../images/yesok.gif'/>Meet the requirements";
					flag[7]=1;
				}
			}

function checkcode(regcode){	
	var xmlhttp;
	try{
		xmlhttp=new XMLHttpRequest();
		}
	catch(e){
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	xmlhttp.onreadystatechange=function(){
	if (xmlhttp.readyState==4){
		if (xmlhttp.status==200){
			var data=xmlhttp.responseText;
			code_result(data);
			}
		else{
			$("span")[id="GetCode"].innerHTML="Verification code check failed, please contact your administrator ";
			}
		}
	else{
		$("span")[id="GetCode"].innerHTML="Verification code calibration is in progress...";
		}
	}
	xmlhttp.open("post", "../Include/check_code.asp", true);
	xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	xmlhttp.send("regcode="+escape(regcode));
}
function code_result(data){
	var resultbox=$("span")[id="GetCode"];
	if(data==1){
		resultbox.innerHTML='<img src="../images/yesok.gif"/> Verification code right ';
		flag[8]=1;
		check_data();
		}
	else{
		resultbox.innerHTML='<img src="../images/yesno.gif"/> Verification code error';
		flag[8]=0;
		check_data();
		}
}
	
			
	//--------------------------------------------------------------------

//验证邮箱正确性
function checkemail(email){
var str=email;
//在JavaScript中，正则表达式只能使用"/"开头和结束，不能使用双引号
var Expression=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; 
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
} 

function myform_onsubmit() {
if(document.myform.Mobile.value=="" && document.myform.Telephone.value=="") 
	{
	    alert("Fixed telephone and mobile phone cannot at the same time is empty!");
		document.myform.Mobile.focus()
	    return false;
	}
var sMobile = document.myform.Mobile.value
if((document.myform.Mobile.value!="") && (!(/^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[0-9]\d{8}|17[0-9]\d{8}|18[0-9]\d{8}/.test(sMobile)))) //(检验13，15，17,18号段)
	{
		alert("The 11 phone number is not complete or correct phone number before seven！");
		document.myform.Mobile.focus();
		return false;
	}
var sTelephone = document.myform.Telephone.value
if((document.myform.Telephone.value!="") && (!(/^([0\+]\d{2,3}-)?(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/.test(sTelephone)))) //(国家代号-区号-电话-分机格式(可选)：+086-010-85858585-2538)
	{
		alert("The phone number of the specification！");
		document.myform.Telephone.focus();
		return false;
	}
    if((!checkemail(myform.Email.value))&&(document.myform.Email.value.length>1))
	{
    alert("The Email address you entered is incorrect, please enter again!");
    document.myform.Email.focus();
    return false;
    }
   if(document.myform.Email.value.length>50 )
	{
	    alert("Mail can't more than 50 characters!");
	    document.myform.Email.focus();
	    return false;
	}
}
// --></script>
  <body onload="check_data();">
	<table cellspacing="0" cellpadding="0" width="90%" border="0" heihgt="">
    <tbody>
        <tr>
          <td height="20">
		  
		  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="5">
              <form action="TalentSave.asp?MemberID=<%=mMemID%>&JobID=<%=JobID%>" method="post" name="myform" id="myform" onSubmit="return myform_onsubmit()">

                <tr>
                  <td width="200" align="right">position：</td>
                  <td> <%=TalentsName%><input type="hidden" name="hkuse" value="<%=TalentsName%>"></td>
                </tr>
                <tr>
                  <td align="right">Name:</td>
                  <td><input name="Linkman" type="text" value="<%=mLinkman%>" size="20" maxlength="50" onblur="check_Linkman(this.value);"/>
                    <font color="red">*</font> <span id=Linkman>Limit 1 to 50 characters</span></td>
                </tr>
                <tr>
                  <td align="right">Sex:</td>
                  <td><input name="Sex" type="radio" value="先生" class="inputnoborder" <%if mSex="先生" then response.write ("checked")%> />
                    Male
                    <input type="radio" name="Sex" value="女士" class="inputnoborder" <%if mSex="女士" then response.write ("checked")%> />
                    Female<font color="red">*</font></td>
                </tr>
                <tr>
                  <td align="right">BirthDate:</td>
                  <td><input name="BirthDate" type="text" id="BirthDate" size="20" maxlength="10"  onblur="check_BirthDate(this.value);"/>
                    <font color="red">*</font>  <span id=BirthDate>(Format such as：1988-08-18)</span></td>
                </tr>
                <tr>
                  <td align="right">Marriage:</td>
                  <td><input name="Marriage" type="radio" value="未婚" checked="checked" class="inputnoborder" />
                    Unmarried
                    <input type="radio" name="Marriage" value="已婚" class="inputnoborder" />
                    Married<font color="red">*</font></td>
                </tr>
                <tr>
                  <td align="right">Stature:</td>
                  <td><input name="Stature" type="text" id="Stature" size="20" maxlength="10" onblur="check_Stature(this.value);"/>CM
                    <font color="red">*</font> <span id=Stature>Limit of pure digital </span></td>
                </tr>
                <tr>
                  <td align="right">RegResidence</td>
                  <td><input name="RegResidence" type="text" id="RegResidence" size="50" maxlength="100" onblur="check_RegResidence(this.value);"/>
                    <font color="red">*</font> <span id="RegResidence">The limit of 200 characters</span></td>
                </tr>
                <tr>
                  <td align="right">Id card</td>
                  <td><input name="Idcard" type="text" id="Idcard" size="50" maxlength="50" onblur="check_Idcard(this.value);"/>
                    <font color="red">*</font> <span id="Idcard">Id is not made public</span></td>
                </tr>
                <tr>
                  <td align="right">Education:</td>
         
                  <td><textarea name="EduResume" rows="6" style="width:500px;border:#a2d1ff 1px solid"  onblur="check_EduResume(this.value);"></textarea><font color="red">*</font><br> <span id="EduResume">Within the limit of 2-1000 characters</span></td>
                </tr>
                <tr>
                  <td align="right">Experience:</td>
                
                  <td><textarea name="JobResume" rows="6" id="JobResume" style="width:500px;border:#a2d1ff 1px solid" onblur="check_JobResume(this.value);"></textarea><font color="red">*</font><br> <span id="JobResume">Within the limit of 2-1000 characters</span></td>
                </tr>
                <tr>
                  <td align="right">Other instructions：</td>
                  <td><textarea name="otheritems" rows="5" id="otheritems" style="width:500px;border:#a2d1ff 1px solid"></textarea></td>
                </tr>
               
                <tr>
                  <td align="right">Mobile:</td>
                  <td><input name="Mobile" type="text" id="Mobile" value="<%=mMobile%>" size="20" maxlength="50" />
                  <font color="#0000ff">*</font></td>
                </tr>
                <tr>
                  <td align="right">Tel：</td>
                  <td><input name="Telephone" type="text" id="Telephone" value="<%=mTelephone%>" size="20" maxlength="50" />
                    <font color="#0000ff">*</font></td>
					 </tr>
                <tr>
                  <td align="right">Email:</td>
                  <td><input name="Email" type="text" id="Email" value="<%=mEmail%>" size="30" maxlength="50" /></td>
                </tr>
				
                <tr>
                  <td align="right">QQ：</td>
                  <td><input name="userqq" type="text" id="userqq" value="<%=muserqq%>" size="30" maxlength="50" /></td>
                </tr>
                <tr>
                  <td align="right">Address:</td>
                  <td><input name="Address" type="text" value="<%=mAddress%>" size="40" maxlength="100" /></td>
                </tr>
                <tr>
                  <td align="right">Post Code：</td>
                  <td><input name="ZipCode" type="text" id="ZipCode" value="<%=mZipCode%>" size="20" maxlength="20" /></td>
                </tr>
              <tr>
                <td align="right">Number：</td>
                <td><input type="text" size="6" name="GetCode" id="GetCode" maxlength="4"  onblur="checkcode(this.value);"/> <font color="red">*</font> 
				<img src="../Include/getcode.asp" id="src" height="18" alt="Can not see clearly, change a picture." onclick="this.src=this.src+'?'+Math.random();"/>
				<span id="GetCode">Can not see clearly, change a picture.</span></td>
              </tr>

                <tr>
                  <td height="31" align="right">&nbsp;</td>
                  <td><input name="Submit" type="submit" value="apply" id="input"/></td>
                </tr>
              </form>
</table>
		  
		  </td>
        </tr>
      </table>
 </td>
 </tr>             
                  <tr> 
                    <td height="8"><div align="right"></div></td>
                  </tr>
                </table> 
                      </TD>
            </TR>
                  </table>
                  
                </td>
              </tr>
			  
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!--#include file="Foot.Asp"-->
