﻿/*
+--------------------------------------------------------------------------+
| ※　(hdzp.net.js)                          |   运行环境 : Asp.net环境    |
|                                            |   开发年月 : 2009年11月     |
|--------------------------------------------------------------------------|
|     程序设计 : Alin   QQ:410589305                                       |
|                                                                          |
|--------------------------------------------------------------------------|
|  声明:                                                                   |
|         本人保留本代码的原著权,擅自修改本程序造成的一切损失本人概不负责! |
|                                                      2008年11月08日      |
+--------------------------------------------------------------------------+
*/

//Company会员类
 var strExtensionName=".html";
var Company = new TCompany();
function TCompany()
{
   
    //公司职位搜索开始
    this.CompanySearch=function()
    {
           var uSex,intxueli,intWorkTime;
           //循环读取选中的关键字类别 
           for(var i=0;i<3;i++)
           {
                if(getObj('sex1').checked==true)
                {
                  uSex=1;
                }
                else if(getObj('sex2').checked==true)
                {
                  uSex=2;
                }
                else 
                {
                  uSex=0;
                }
           }
           
          var value_PlaceBig      = getObjValue("jTypeId"),
              value_PositionBig   = getObjValue("cid_hope"),
              value_PubRander      = getObjValue("exptime"),
              value_WorkingYears      = getObjValue("experience"),
              value_Eduction      = getObjValue("eduction"),
              value_Key           = getObjValue("Key");
            if(value_Key==" 例如： 跟单员 业务员 会计 或 培正公司 邮箱 电话号码 传真号码" || value_Key=="" || value_Key==" 例如： 皮具設計師 上海 或 涂飾 郵箱 電話號碼 或 傳真號碼")
              {
               value_Key="";
              }
              
         //包括以上学历  
       if(getObj('cbxueli').checked==true && value_Eduction >0 )
        {
           intxueli=2; 
        }   
         //包括以上工作经验 
       if(getObj('cbJingyan').checked==true && value_WorkingYears >0)
        {
           intWorkTime=2; 
        }   
        
           var url = "/hdzc/hdzp/company/companysearch/?action=list";
           url += value_PlaceBig?"&PlaceID="+value_PlaceBig:"";
           url += value_PositionBig?"&JobID="+value_PositionBig:"";
           url += value_Key?"&key="+value_Key:"";
           url += value_PubRander>0?"&position_pubrander="+value_PubRander:"";
           url += value_WorkingYears?"&position_workingyears="+value_WorkingYears:"";
           url += value_Eduction?"&position_education="+value_Eduction:"";
           url += uSex>0?"&sex="+uSex:"";
           url += intxueli>0?"&position_xueli="+intxueli:"";
           url += intWorkTime>0?"&position_worktime="+intWorkTime:"";
           Control.goUrl(url);
    }
    //end  CompanySearch
    
    //公司职位搜索开始
    this.CompanyMeunSearch=function()
    {
         
           
          var value_PlaceBig      = getObjValue("jTypeId"),
              value_PositionBig   = getObjValue("cid_hope"),
              value_Key           = getObjValue("Key");
            if(value_Key=="例如： 业务员 花都 或 会计 邮箱 电话号码 或 传真号码" || value_Key=="" || value_Key==" 例如： 皮具設計師 上海 或 涂飾 郵箱 電話號碼 或 傳真號碼")
              {
               value_Key="";
              }
           
           var url = "/hdzc/hdzp/company/companysearch/?action=list";
           url += value_PlaceBig?"&PlaceID="+value_PlaceBig:"";
           url += value_PositionBig?"&JobID="+value_PositionBig:"";
           url += value_Key?"&key="+value_Key:"";
           Control.goUrl(url);
    }
    //end  CompanySearch
    
     //公司职位搜索开始
    this.HdzpSearch=function()
    {
          var value_PlaceBig      = getObjValue("barea"),
              value_Key           = getObjValue("keyword");
            if(value_Key=="请输入职位或公司名称关键字" || value_Key=="" || value_Key=="请输入职位或公司名称关键字")
              {
               value_Key="";
              }
           
           var url = "/hdzc/hdzp/company/companysearch/?action=list";
           url += value_PlaceBig?"&PlaceID="+value_PlaceBig:"";
           url += value_Key?"&key="+value_Key:"";
           Control.goUrl(url);
    }
    //end  CompanySearch
    

    //ConfirmBox
    this.one_favorite = function (UserID)
    {
       
           $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=2&id="+UserID,
				dataType:'POST',
				async:false,
				cache: false,
				beforeSend:function(){
					$('#DivInfo').html("正在处理中，请稍等...<img src=\"/images/hdzp/loading.gif\"/>");
				}, 
				success:function(msg){
					        if (msg.indexOf("<OK/>")!=-1)
                            {
                                 MsgBox(msg);
                                 $('#DivInfo').hide();
                            }
                            else if(msg.indexOf("<Logout/>")!=-1)
                            {     
                               $('#DivInfo').hide();                    
                               if(ConfirmBox(msg))
                               {
                                Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            }
                            else
                            {
                                MsgBox(msg);
                                $('#DivInfo').hide();
                            }	

				},
			    error:function(){
			     $('#DivInfo').html("处理失败...<img src=\"/images/hdzp/loading.gif\"/>");
				
				}	
			});       
        
        
    }//end one_favorite
    
     //列表加入收藏夹
    this.much_favorite = function (ObjId)
    {
        var arrIDs=getCheckedValue(ObjId)
        var arr=arrIDs.split("|"); 
        if(arrIDs && arrIDs!="")
           {
               $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=3&arrIDs="+arrIDs,
				dataType:'POST',
				async:false,
				cache: false,
				beforeSend:function(){
					$('#DivInfo').html("正在处理中，请稍等...<img src=\"/images/hdzp/loading.gif\"/>");
				}, 
				success:function(msg){
					        if (msg.indexOf("<OK/>")!=-1)
                            {
                                 MsgBox(msg);
                                 $('#DivInfo').hide();
                            }
                            else if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                         
                               $('#DivInfo').hide();
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                        
                            }
                            else
                            {
                                MsgBox(msg);
                                $('#DivInfo').hide();
                            }	

				},
			    error:function(){
			     $('#DivInfo').html("处理失败...<img src=\"/images/hdzp/loading.gif\"/>");
				
				}	
			});       
            }
          else
          {
               MsgBox("请先选择收藏的人才！");
          }  
    }//end much_favorite
    
        //企业人才库删除
    this.much_Favorite_Del = function (ObjId)
    {
     var arrIDs=checkAllObj(ObjId);   
        if(arrIDs && arrIDs!="")
           {
               $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=7&arrIDs="+arrIDs,
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                                MsgBox(msg);
                                 window.location.reload();
                            }
				}
			});     
            }
          else
          {
               MsgBox("请先选择要删除的人才！");
          }  
    }
    
     //企业登陆
    this.company_login = function ()
    {
          $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            }   
				}
			});       
    }//end company_login
    
     //推荐给好友
    this.one_interview = function (UserID)
    {
        $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                              Pop('发送面试通知','/hdzc/hdzp/person/Resume/Company_SendInterview.aspx?ID='+UserID+'&keepThis=true&TB_iframe=true&height=460&width=600',false);

                            }
				}
			});     
       
        
        
    }//end one_person_resume_firend
    
    //下载联系方式
    this.one_person_resume_download = function (UserID)
    {
        $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=21&id="+UserID,
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                             MsgBox(msg);
                                 window.location.reload();
                            }
				}
			});     
       
        
        
    }//end one_person_resume_download
    
    //企业收到会员发送面试通知
    this.much_interview = function (ObjId,tid)
    {
       var arrIDs=checkAllObj(ObjId);              
       if(arrIDs && arrIDs!="")
           { 
               $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                              Pop('发送面试通知','/hdzc/manage/companymanage/Resume/Job_Apply_Send_Interview.aspx?arrIDs='+arrIDs+'&tid='+tid+'&keepThis=true&TB_iframe=true&height=460&width=600',false);

                            }
				}
			});     
        
        }
        else
        {
          alert("请先选择应聘职位的人才!");
          return;
        }
    }//end much_interview = function (ObjId)
    
    //企业收到会员申请回复个人
    this.much_interview_Reply = function (ObjId)
    {
        var arrIDs=checkAllObj(ObjId);            
        if(arrIDs && arrIDs!="")
           {
               $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                              Pop('简历回复','/hdzc/manage/companymanage/Resume/Job_Apply_FeedBack.aspx?arrIDs='+arrIDs+'&keepThis=true&TB_iframe=true&height=500&width=600',false);

                            }
				}
			});     
        
        }
        else
        {
          alert("请先选择应聘职位的人才!");
          return;
        }
    }//end much_interview_Reply = function (ObjId)
    
         //企业接收申请加入收藏夹
    this.much_interview_Favorite = function (ObjId)
    {
        var arrIDs=checkAllObj(ObjId);   
        if(arrIDs && arrIDs!="")
           {
               $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=4&arrIDs="+arrIDs,
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                                MsgBox(msg);
                                 window.location.reload();
                            }
				}
			});     
            }
          else
          {
               MsgBox("请先选择收藏的人才！");
          }  
    }//end Company.much_interview_Favorite 
    
    //企业收到申请删除
    this.much_interview_Del = function (ObjId)
    {
     var arrIDs=checkAllObj(ObjId);   
        if(arrIDs && arrIDs!="")
           {
               $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=6&arrIDs="+arrIDs,
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                              if(ConfirmBox(msg))
                               {
                                 Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                               }
                            } 
                            else
                            {
                                MsgBox(msg);
                                 window.location.reload();
                            }
				}
			});     
            }
          else
          {
               MsgBox("请先选择要删除的人才！");
          }  
    }
       
     //英文简历切换开始
    this.ReadResume=function(ObjID)
    {
       var url = "/hdzc/hdzp/person/resume/?ID="+ObjID;
       Control.goUrl(url);
    }
    //end  ReadResumeEn
      
     //英文简历切换开始
    this.ReadResumeEn=function(ObjID)
    {
       var url = "/hdzc/hdzp/person/resume/English_Resume.aspx?ID="+ObjID;
       Control.goUrl(url);
    }
    //end  ReadResumeEn
    
     //发送到邮箱
    this.one_person_resume = function (UserID)
    {
       
        $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            }   
                            else
                            {
                               Pop('发送到邮箱','/hdzc/hdzp/person/resume/Email_Person.aspx?ID='+UserID+'&keepThis=true&TB_iframe=true&height=100&width=400',false);
 
                            }
				}
			});       

    }//end one_person_resume
    
     //推荐给好友
    this.one_person_resume_firend = function (UserID)
    {
       
        $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            }   
                            else
                            {
                            Pop('推荐给好友','/hdzc/hdzp/person/resume/Email_Person_Friend.aspx?ID='+UserID+'&keepThis=true&TB_iframe=true&height=370&width=530',false);

                            }
				}
			});       
    }//end one_person_resume_firend
    
    
     //企业接收申请查看
    this.person_apply_View = function (Id,UserID)
    {
       
         $.ajax({
				url:"/Ajax/",
				data:"modul=3&mode=5&id="+Id,
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            }   
                            else
                            {
                            Control.goUrl('/hdzc/hdzp/person/resume/?ID='+UserID,'_blank'); 
                            }
				}
			});       
           
    }//end Company.person_apply_View
    
    //企业收到会员申请发送Email
    this.much_interview_Person_Email = function (ObjId,tid)
    {
        var arrIDs=checkAllObj(ObjId);            
        if(arrIDs && arrIDs!="")
           {
               
                $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=7",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('企业会员登陆','/hdzc/hdzp/Login/div/Div_Company.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            }   
                            else
                            {
                            Pop('简历外发','/hdzc/manage/companymanage/Resume/Job_Apply_Email_Person.aspx?arrIDs='+arrIDs+'&tid='+tid+'&keepThis=true&TB_iframe=true&height=370&width=530',false);

                            }
				}
			});    
			
             
        }
        else
        {
          alert("请先选择要发送的人才!");
          return;
        }
    }//end much_interview_Person_Email = function (ObjId)
    
     //职场资讯新闻搜索 escape(key) 
this.HdzpNewsSearch=function()
{
  var value_key     = getObjValue("key"),
      value_Big   = getObjValue("ddlstType");         
 if(value_key=="" || value_key=="请输入关键字")
        {
            alert("请输入搜索关键词！")
            return;
        }
      else
      {
        var MyBig= value_Big?value_Big:"0";
        Control.goUrl('/hdzc/hdzp/news/newslist-'+MyBig+'-'+RTrim(value_key)+'.html');
     }
}
 //教育培训 新闻搜索  
this.HdzpTrainSearch=function()
{
  var value_key     = getObjValue("key"),
      value_Big   = getObjValue("ddlstType");         
 if(value_key=="" || value_key=="请输入关键字")
        {
            alert("请输入搜索关键词！")
            return;
        }
      else
      {
        var MyBig= value_Big?value_Big:"0";
        Control.goUrl('/hdzc/hdzp/train/trainList-'+MyBig+'-'+RTrim(value_key)+'.html');
     }
}

    
}//end  TCompany
 
//Person会员类
var Person = new TPerson();
function TPerson()
{
     //人才搜索开始
    this.PersonSearch=function()
    {
           var uSex,intxueli,intWorkTime,intphoto;
           //循环读取选中的关键字类别 
           for(var i=0;i<3;i++)
           {
                if(getObj('sex1').checked==true)
                {
                  uSex=1;
                }
                else if(getObj('sex2').checked==true)
                {
                  uSex=2;
                }
                else 
                {
                  uSex=0;
                }
           }
           
          var value_PlaceBig      = getObjValue("jTypeId"),
              value_PositionBig   = getObjValue("cid_hope"),
              value_PubRander      = getObjValue("exptime"),
              value_WorkingYears      = getObjValue("experience"),
              value_Eduction      = getObjValue("eduction"),
              value_Key           = getObjValue("Key");
            if(value_Key=="请输入姓名、邮箱、电话号码、简历编号或者求职意向进行搜索" || value_Key=="" || value_Key==" 例如： 皮具設計師 上海 或 涂飾 郵箱 電話號碼 或 傳真號碼")
              {
               value_Key="";
              }
              //包括以上学历  
     
       if(getObj('cbxueli').checked==true && value_Eduction >0 )
        {
           intxueli=2; 
        }   
         //包括以上工作经验 
       if(getObj('cbJingyan').checked==true && value_WorkingYears >0)
        {
           intWorkTime=2; 
        }   
//        //是否照片
//       if(getObj('cbphoto').checked==true)
//        {
//           intphoto=2; 
//        }   
          var url = "/hdzc/hdzp/person/personsearch/?action=list";
           url += value_PlaceBig?"&PlaceID="+value_PlaceBig:"";
           url += value_PositionBig?"&JobID="+value_PositionBig:"";
           url += value_Key?"&key="+value_Key:"";
           url += value_PubRander>0?"&position_pubrander="+value_PubRander:"";
           url += value_WorkingYears?"&position_workingyears="+value_WorkingYears:"";
           url += value_Eduction?"&position_education="+value_Eduction:"";
           url += uSex>0?"&sex="+uSex:"";
           url += intxueli>0?"&position_xueli="+intxueli:"";
           url += intWorkTime>0?"&position_worktime="+intWorkTime:"";
           url += intphoto>0?"&IsPhoto="+intphoto:"";
           Control.goUrl(url);
    }
    //end  CompanySearch
    
    //菜单人才搜索开始
    this.PersonMeunSearch=function()
    {
         
           
          var value_PlaceBig      = getObjValue("jTypeId"),
              value_PositionBig   = getObjValue("cid_hope"),
              value_Key           = getObjValue("Key");
            if(value_Key=="请输入姓名、邮箱、电话号码、简历编号或者求职意向进行搜索" || value_Key=="" || value_Key==" 例如： 皮具設計師 上海 或 涂飾 郵箱 電話號碼 或 傳真號碼")
              {
               value_Key="";
              }
           
           var url = "/hdzc/hdzp/person/personsearch/?action=list";
           url += value_PlaceBig?"&PlaceID="+value_PlaceBig:"";
           url += value_PositionBig?"&JobID="+value_PositionBig:"";
           url += value_Key?"&key="+value_Key:"";
           Control.goUrl(url);
    }
    //end  CompanySearch
    //职位查看申请职位
    this.one_applly = function (PosId)
    {
         $.ajax({
				url:"/Ajax/",
				data:"modul=2&mode=2&PosId="+PosId,
				dataType:'POST',
				async:false,
				cache: false,
				beforeSend:function(){
					$('#DivInfo').html("正在处理中，请稍等...<img src=\"/images/hdzp/loading.gif\"/>");
				}, 
				success:function(msg){
					        if (msg.indexOf("<OK/>")!=-1)
                            {
                                 MsgBox(msg);
                                 $('#DivInfo').hide();
                            }
                            else if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                         
                               $('#DivInfo').hide();
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                        
                            }
                            else
                            {
                                MsgBox(msg);
                                $('#DivInfo').hide();
                            }	

				},
			    error:function(){
			     $('#DivInfo').html("处理失败...<img src=\"/images/hdzp/loading.gif\"/>");
				
				}	
			});       
    }//end one_applly
    
    //职位查看加入收藏夹
    this.one_favorite = function (PosId)
    {
         $.ajax({
				url:"/Ajax/",
				data:"modul=2&mode=1&PosId="+PosId,
				dataType:'POST',
				async:false,
				cache: false,
				beforeSend:function(){
					$('#DivInfo').html("正在处理中，请稍等...<img src=\"/images/hdzp/loading.gif\"/>");
				}, 
				success:function(msg){
					        if (msg.indexOf("<OK/>")!=-1)
                            {
                                 MsgBox(msg);
                                 $('#DivInfo').hide();
                            }
                            else if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                         
                               $('#DivInfo').hide();
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                        
                            }
                            else
                            {
                                MsgBox(msg);
                                $('#DivInfo').hide();
                            }	

				},
			    error:function(){
			     $('#DivInfo').html("处理失败...<img src=\"/images/hdzp/loading.gif\"/>");
				
				}	
			});       
    }//end one_favorite
    //列表加入收藏夹
    this.much_favorite = function (ObjId)
    {            
        var arrIDs=getCheckedValue(ObjId)
        var arr=arrIDs.split("|");
        if(arrIDs && arrIDs!="")
           {
             
             $.ajax({
				url:"/Ajax/",
				data:"modul=2&mode=3&arrIDs="+arrIDs,
				dataType:'POST',
				async:false,
				cache: false,
				beforeSend:function(){
					$('#DivInfo').html("正在处理中，请稍等...<img src=\"/images/hdzp/loading.gif\"/>");
				}, 
				success:function(msg){
					        if (msg.indexOf("<OK/>")!=-1)
                            {
                                 MsgBox(msg);
                                 $('#DivInfo').hide();
                            }
                            else if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                         
                               $('#DivInfo').hide();
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                        
                            }
                            else
                            {
                                MsgBox(msg);
                                $('#DivInfo').hide();
                            }	

				},
			    error:function(){
			     $('#DivInfo').html("处理失败...<img src=\"/images/hdzp/loading.gif\"/>");
				
				}	
			});       

            }
          else
          {
               MsgBox("请先选择收藏的职位！");
          }  
    }//end much_favorite
    
    this.view_position = function (ObjId)
    {
        var arrIDs=getCheckedValue(ObjId)
        if(arrIDs && arrIDs!="")
        {
            Control.goUrl("/hdzc/hdzp/company/Company_Job_Much_List.aspx?arrIDs="+arrIDs,'_blank');
        }
        else
        {
             alert("请选择要查看的职位！");
        }
    }
     //个人登陆
    this.person_login = function ()
    {
          $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=6",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {
                                                
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                        
                            }   
				}
			});       
    }//end person_login
    
    //个人面试通知查看
    this.person_Interview_View = function (Id,type,ComId,PosId)
    {
         $.ajax({
				url:"/Ajax/",
				data:"modul=1&mode=6",
				dataType:'POST',
				async:false,
				cache: false,
				success:function(msg){
					        if(msg.indexOf("<Logout/>")!=-1)
                            {               
                               Pop('个人会员登陆','/hdzc/hdzp/Login/div/Div_Person.aspx?keepThis=true&TB_iframe=true&height=230&width=320',false);
                            } 
                            else
                            {
                                 $.ajax({
			                        url:"/Ajax/",
			                        data:"modul=2&mode=4&ID="+Id,
			                        dataType:'POST',
			                        async:false,
			                        cache: false,
			                        success:function(code){
				                                   if (code.indexOf("<OK/>")!=-1)
                                                    {
                                                        if(type==1)
                                                        {
                                                          Pop('我的面试通知单','/hdzc/manage/personmanage/jobhr/Person_MyInterview_View.aspx?id='+Id+'&TB_iframe=true&keepThis=true&height=420&width=500',false);
                                                        }
                                                        else  if(type==2)
                                                        {
                                                          Control.goUrl('/hdzc/hdzp/company/company.aspx?ComId='+ComId,'_blank'); 
                                                        }
                                                        else
                                                        {
                                                          Control.goUrl('/hdzc/hdzp/company/company_job.aspx?PosId='+PosId,'_blank'); 
                                                        }
                                                    }
                                                    else
                                                    {
                                                       MsgBox(code);
                                                    }
			                        }
		                        });       
                            }  
				}
			});       
    }//end person_Interview_View 
}

//联动分类开始
function RefreshSelect(ObjID,value,Modul,Mode)
{
    var Obj=getObj(ObjID);
    if(Obj==null) return;
    $.ajax({
    type: "POST",
    url:"/Ajax/",
    data:"modul="+Modul+"&mode="+Mode+"&value="+value,
    success: function(code)
    { 
        //先清空原来的数据.
        Obj.options.length=0;
        var arrItems = code.split("|");
        var aItem;
        //开始构建新的Select.
        for(var i=0;i<arrItems.length;i++)
        {
            aItem=arrItems[i].split(",");
            Obj.options[Obj.options.length]=new Option(aItem[1],aItem[0]);
        }
     } 
    }
    
    );     
}
//联动分类结束
