﻿//TT
function user_sendemail(resumeid)
{
    var url='/hunter/contact/sendemail.aspx?seekerid='+resumeid;
    select_lay1(url,'465','300');
}
function user_tage(id,resumeid)
{
    var url='/hunter/contact/tage.aspx?id='+id+'&seekerid='+resumeid;;
    select_lay1(url,'360','92');
}
function user_httage(id,htuserid)
{
    var url='/hunter/contact/tage.aspx?id='+id+'&htuserid='+htuserid;;
    select_lay1(url,'360','92');
}
function user_htsendemail(htuserid)
{
    var url='/hunter/contact/sendemail.aspx?htuserid='+htuserid;
    select_lay1(url,'465','300');
}
function user_emailjilu(toid,flag)
{
    var url='/hunter/contact/emailjilu.aspx?toid='+toid+'&flag='+flag;
    select_lay1(url,'465','200');
}
function user_sendmsn(emails)
{
    var url='/hunter/contact/sendmsn.aspx?emails='+emails;
    select_lay1(url,'670','450');
}
function select_lay1(url,w,h)
{
  var msgw,msgh,bordercolor;
  var str='<iframe src='+url+' width='+w+' marginwidth=0 height='+h+' marginheight=0 scrolling=no frameborder=0 id=rightframe10 name=rightframe10></iframe>'
  var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight+5;

   var bgObj=document.createElement("div");
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=4,opacity=55,finishOpacity=35";
   bgObj.style.opacity="0.8";
   bgObj.style.left="0";
   bgObj.style.width="100%";
   bgObj.style.height=sHeight+"px";
   document.body.appendChild(bgObj);
    
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight;
   var msgObj=document.createElement("div")
   msgObj.setAttribute("id","msgDiv");
   msgObj.setAttribute("align","center");

   msgObj.style.position="absolute";
   msgObj.style.background="white";
   msgObj.style.font="12px/1.6em 宋体, Geneva, Arial, Helvetica, sans-serif";
   msgObj.style.border="0px solid #C1D7EC";
   msgObj.style.width=w;
   msgObj.style.height=h;
   msgObj.style.top=(document.documentElement.scrollTop+40) + "px";
   msgObj.style.left=(sWidth-w)/2 + "px";


     document.body.appendChild(msgObj);
     var txt=document.createElement("p");
     txt.style.margin="0 0"
     txt.setAttribute("id","msgTxt");
     txt.innerHTML=str;
     document.getElementById("msgDiv").appendChild(txt);
}



//行业1:查询猎头公司
function hangye_1(str,num)
{
var v=document.getElementById(str).value;
if(v!="" & v!="选择行业")
{
v=encodeURI(v);
}
else
{
v="";
}
var url='/select/hangye1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择行业</b>(最多选择'+num+'项)'
select_lay_2(url,title);







}
function testhy()
{
window.showModalDialog('/select/testhy.aspx',window,'dialogWidth:500px;dialogHeight:300px;scroll:no');
}
//行业2:成功案例-客户所属行业/人才查询职位/猎头查询生意机会/猎头查询名单/公司行业/猎头查询招标信息/工作经历-公司行业
function hangye_2(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/hangye_2.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择行业</b>(最多选择'+num+'项)'
select_lay_2(url,title);
}
//行业3:猎头查询简历/猎头查询分享简历/企业查询候选人
function hangye_3(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/hangye_3.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择行业</b>(最多选择'+num+'项)'
select_lay_2(url,title);
}
//职业1:猎头公司展示网页,猎头发布职位,企业发布招标信息
function zhiye_1(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/zhiye1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择职业</b>(最多选择'+num+'项)'
select_lay_2(url,title);
}
//职业2:猎头提交候选人,猎头上传简历,个人简历
function zhiye_2(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/zhiye_2.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择职业</b>(最多选择'+num+'项)'
select_lay_2(url,title);
}

//职位
function zhiwei(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/zhiwei.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择职位</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}

//地区1:含国外地区
function diqu_1(str,num)
{
var v=document.getElementById(str).value;
if(v!="" & v!="选择地区")
{
v=encodeURI(v);
}
else
{
v="";
}
var url='/select/diqu_1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}

function diqu_11(str,num)
{
var v=document.getElementById(str).value;
if(v!="" & v!="选择地区")
{
v=encodeURI(v);
}
else
{
v="";
}
var url='/select/diqu_1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_11(url,title,str);

}


//地区2:不含国外地区，国内分支机构所在城市
function diqu_2(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/diqu_2.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//地区3:单选
function diqu(str)
{
window.showModalDialog('/select/diqu.aspx?str='+str,window,'dialogWidth:560px;dialogHeight:300px;scroll:no');
}
function diqu_cv(str,num,str1)
{
var url='/select/diqu_cv.aspx?cid='+str+'&num='+num+"&v="+str1;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}

function diqu_cv_en(str,num,str1)
{
var url='/select/diqu_cv_en.aspx?cid='+str+'&num='+num+"&v="+str1;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//企业性质1:个人查询职位/企业注册-公司性质/工作经历-公司性质
function qiye_1(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/qiye_1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择公司性质</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//企业性质2:个人简历-现任职公司性质/猎头查询简历-现任职公司性质
function qiye_2(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/qiye_2.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择公司性质</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//企业规模1:
function guimo_1(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/guimo_1.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择企业规模</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//企业规模2:个人简历
function guimo_2(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/guimo_2.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择企业规模</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
//外语
function waiyu(str,num)
{
var v=document.getElementById(str).value;
if(v!="")
{
v=encodeURI(v);
}
var url='/select/waiyu.aspx?cid='+str+'&num='+num+'&v='+v;
var title='<b>请选择语言</b>'
select_lay_1(url,title);
}
//外语
function waiyu_cv(str,v)
{
var url='/select/waiyu_cv.aspx?cid='+str+'&v='+v;
var title='<b>请选择语言</b>'
select_lay_1(url,title);
}
//外语
function waiyu_cv_en(str,v)
{
var url='/select/waiyu_cv_en.aspx?cid='+str+'&v='+v;
var title='<b>请选择语言</b>'
select_lay_1(url,title);
}
//地区1:含国外地区
function diquhiden_1(str,num,hiden)
{
window.showModalDialog('/select/diquhiden_1.aspx?str='+str+'&hiden='+hiden+'&num='+num,window,'dialogWidth:10px;dialogHeight:10px;scroll:no');
}

//外语
function waiyuhiden(str,num,hiden)
{
window.showModalDialog('/select/waiyuhiden.aspx?str='+str+'&hiden='+hiden+'&num='+num,window,'dialogWidth:15px;dialogHeight:15px;scroll:no');
}

//定制简历常用的查询条件
function cv_search_condition(str)
{
var url='/select/cv_search.aspx?str='+str;
var title='<b>定制简历查询条件</b>'
select_lay_1(url,title);
}

//定制简历常用的查询条件
function cvdb_search_condition(str)
{
var url='/select/cvdb_search.aspx?str='+str
var title='<b>定制简历查询条件</b>'
select_lay_1(url,title);
}

function select_lay_1(url,title)
{
  var msgw,msgh,bordercolor;
  var str='<iframe src='+url+' width=460 marginwidth=0 height=300 marginheight=0 scrolling=no frameborder=0 id=rightframe10 name=rightframe10></iframe>'
  var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight+5;

   var bgObj=document.createElement("div");
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=4,opacity=55,finishOpacity=35";
   bgObj.style.opacity="0.8";
   bgObj.style.left="0";
   bgObj.style.width="100%";
   bgObj.style.height=sHeight+"px";
   document.body.appendChild(bgObj);
    
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight;
   var msgObj=document.createElement("div")
   msgObj.setAttribute("id","msgDiv");
   msgObj.setAttribute("align","center");
   msgObj.style.position="absolute";
   msgObj.style.background="white";
   msgObj.style.font="12px/1.6em 宋体, Geneva, Arial, Helvetica, sans-serif";
   msgObj.style.border="0px solid #000000";
   msgObj.style.width="460px";
   msgObj.style.height="300px";
   //msgObj.style.top="22px";
   msgObj.style.top=(document.documentElement.scrollTop + 145) + "px";
   msgObj.style.left=(sWidth-500)/2 + "px";


 document.body.appendChild(msgObj);
 var txt=document.createElement("p");
 txt.style.margin="0 0"
 txt.setAttribute("id","msgTxt");
 txt.innerHTML=str;
 document.getElementById("msgDiv").appendChild(txt);
}



function select_lay_11(url,title,str33)
{
  var msgw,msgh,bordercolor;
  var str='<iframe src='+url+' width=460 marginwidth=0 height=300 marginheight=0 scrolling=no frameborder=0 id=rightframe10 name=rightframe10></iframe>'
  var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight+5;

   var bgObj=document.createElement("div");
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=4,opacity=55,finishOpacity=35";
   bgObj.style.opacity="0.8";
   bgObj.style.left="0";
   bgObj.style.width="100%";
   bgObj.style.height=sHeight+"px";
   document.body.appendChild(bgObj);
    
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight;
   var msgObj=document.createElement("div")
   msgObj.setAttribute("id","msgDiv");
   msgObj.setAttribute("align","center");
   msgObj.style.position="absolute";
   msgObj.style.background="white";
   msgObj.style.font="12px/1.6em 宋体, Geneva, Arial, Helvetica, sans-serif";
   msgObj.style.border="0px solid #000000";
   msgObj.style.width="460px";
   msgObj.style.height="300px";
   //msgObj.style.top="22px";
   msgObj.style.top=(document.documentElement.scrollTop + 145) + "px";
   msgObj.style.left=(sWidth-500)/2 + "px";


 document.body.appendChild(msgObj);
 var txt=document.createElement("p");
 txt.style.margin="0 0"
 txt.setAttribute("id","msgTxt");
 txt.innerHTML=str;
 document.getElementById("msgDiv").appendChild(txt);
 document.getElementById(str33).focus();
}



function wl()
{
 document.body.removeChild(document.getElementById("bgDiv"));
 document.body.removeChild(document.getElementById("msgDiv"));
}

function select_lay_2(url,title)
{
  var msgw,msgh,bordercolor;
  var str='<iframe src='+url+' width=620 marginwidth=0 height=441 marginheight=0 scrolling=no frameborder=0 id=rightframe10 name=rightframe10></iframe>'
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight+5;

   var bgObj=document.createElement("div");
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=4,opacity=55,finishOpacity=35";
   bgObj.style.opacity="0.8";
   bgObj.style.left="0";
   bgObj.style.width="100%";
   bgObj.style.height=sHeight+"px";
   document.body.appendChild(bgObj);
    
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight;
   var msgObj=document.createElement("div")
   msgObj.setAttribute("id","msgDiv");
   msgObj.setAttribute("align","center");
   msgObj.style.position="absolute";
   msgObj.style.background="white";
   msgObj.style.font="12px/1.6em 宋体, Geneva, Arial, Helvetica, sans-serif";
   msgObj.style.border="0px solid #000000";
   msgObj.style.width="620px";
   msgObj.style.height="441px";
   //msgObj.style.top="22px";
   msgObj.style.top=(document.documentElement.scrollTop + 155) + "px";
   msgObj.style.left=(sWidth-580)/2 + "px";


 document.body.appendChild(msgObj);
 var txt=document.createElement("p");
 txt.style.margin="0 0"
 txt.setAttribute("id","msgTxt");
 txt.innerHTML=str;
 document.getElementById("msgDiv").appendChild(txt);
}

function select_lay_3()
{
  var msgw,msgh,bordercolor;
  var str='<table style="width:256px;height:86px;background:url(/images/seeker/alert_bg.gif);" cellspacing="0" cellpadding="0"><tr><td style="width:105px;padding-left:20px;"><a href="javascript:wl();" class="a1"><img src="/images/seeker/wsjl.gif"></a></td><td style="width:110px;text-align:left;"><a href="/seeker/memindex.aspx" class="a1"><img src="/images/seeker/myhome.gif"></a></td></tr></table>'
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight+5;

   var bgObj=document.createElement("div");
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=4,opacity=55,finishOpacity=35";
   bgObj.style.opacity="0.8";
   bgObj.style.left="0";
   bgObj.style.width="100%";
   bgObj.style.height=sHeight+"px";
   document.body.appendChild(bgObj);
    
   var sWidth,sHeight;
   sWidth=document.body.offsetWidth;
   sHeight=document.body.offsetHeight;
   var msgObj=document.createElement("div")
   msgObj.setAttribute("id","msgDiv");
   msgObj.setAttribute("align","center");
   msgObj.style.position="absolute";
   msgObj.style.background="white";
   msgObj.style.font="12px/1.6em 宋体, Geneva, Arial, Helvetica, sans-serif";
   msgObj.style.border="0 solid #ABC5E4";
   msgObj.style.width="256px";
   msgObj.style.height="86px";
   //msgObj.style.top="22px";
   msgObj.style.top=(document.documentElement.scrollTop + 180) + "px";
   msgObj.style.left=(sWidth-300)/2 + "px";


 document.body.appendChild(msgObj);
 var txt=document.createElement("p");
 txt.style.margin="0 0"
 txt.setAttribute("id","msgTxt");
 txt.innerHTML=str;
 document.getElementById("msgDiv").appendChild(txt);
}

function wl()
{
 document.getElementById("msgDiv").removeChild(document.getElementById("msgTxt"));
 document.body.removeChild(document.getElementById("bgDiv"));
 document.body.removeChild(document.getElementById("msgDiv"));
}

//地区1:含国外地区
function jobdiqu(str,num,hidden)
{
var url='/select/job/diqu_1.aspx?cid='+str+'&num='+num+'&hidden='+hidden;
var title='<b>请选择地区</b>(最多选择'+num+'项)'
select_lay_1(url,title);
}
function jobwaiyu(str,num,hidden)
{
var url='/select/job/waiyu.aspx?cid='+str+'&num='+num+'&hidden='+hidden;
var title='<b>请选择语言</b>'
select_lay_1(url,title);
}


function seeker_sendemail(htuid)
{
    var url='/consultant/seeker_email.aspx?htuid='+htuid;
    select_lay1(url,'620','440');
}
