﻿function changeimg()
{
document.getElementById("xximg1").src="images/jobselect_01.gif";
document.getElementById("xximg2").src="images/jobselect_04.gif";
document.getElementById("xxid2").style.visibility="hidden";
document.getElementById("xxid2").style.display="none"; 
document.getElementById("xxid1").style.visibility="visible";
document.getElementById("xxid1").style.display="inline";
}
function changeimg1()
{
document.getElementById("xximg1").src="images/jobselect1_01.gif";
document.getElementById("xximg2").src="images/jobselect1_04.gif";
document.getElementById("xxid1").style.visibility="hidden";
document.getElementById("xxid1").style.display="none"; 
document.getElementById("xxid2").style.visibility="visible";
document.getElementById("xxid2").style.display="inline";
}
function setnull()
{
    document.getElementById("TextBox3").value="";
}
function job_bt()//首页找工作
{
    var text=document.getElementById("select1_job_text").value;//搜索内容
    if(text=="")
    {
         if(document.getElementById("findjob").checked==true)
        {
            window.location.href='job_center.aspx';
        }
        else if(document.getElementById("findren").checked==true)
        {
            window.location.href='person_center.aspx';
        }
    }
    else
    {
        text=escape(text);
        if(document.getElementById("findjob").checked==true)
        {
            window.location.href='jobtext-'+text+".html";
        }
        else if(document.getElementById("findren").checked==true)
        {
            window.location.href='resumetext-'+text+".html";
        }
    }
}
function settextboxnull(t_id)
{
    var textboxid=t_id;
    document.getElementById(textboxid).value="";
}

function selectperson()
{
    var zylb=document.getElementById("DropDownList1").value;//职业类别 value值 0表示是其他
    if(zylb==-1)
    {
        zylb="";
    }
    else
    {
        zylb=document.getElementById("DropDownList1").options[document.getElementById("DropDownList1").selectedIndex].text;
        zylb=escape(zylb);
    }
    var xl=document.getElementById("DropDownList2").value;
    if(xl==-1)
    {
        xl="";
    }
    else
    {
        xl=document.getElementById("DropDownList2").options[document.getElementById("DropDownList2").selectedIndex].text;
        xl=escape(xl);
    }
    var zc=document.getElementById("DropDownList3").value;
    if(zc==-1)
    {
        zc="";
    }
    else
    {
        zc=document.getElementById("DropDownList3").options[document.getElementById("DropDownList3").selectedIndex].text;
        zc=escape(zc);
    }
    var shen=document.getElementById("DropDownList4").value;
    if(shen==-1)
    {
        shen="";
    }
    var city=document.getElementById("DropDownList5").value;
    if(city==-1)
    {
        city="";
    }
    var zwxx=document.getElementById("TextBox3").value;//escape()
    if(zwxx=="您要查询的职位信息")
    {
        zwxx=""
    }
    else
    {
        zwxx=escape(zwxx);
    }
        window.location.href='resumetext-'+zylb+'-'+xl+'-'+zc+'-'+shen+'-'+city+'-'+zwxx+'-1.html';  
}

function jobneiselect()
{
    var zylb=document.getElementById("DropDownList1").value;//职业类别 value值 0表示是其他
    if(zylb==-1)
    {
        zylb="";
    }
    else
    {
        zylb=document.getElementById("DropDownList1").options[document.getElementById("DropDownList1").selectedIndex].text;
        zylb=escape(zylb);
    }
    var qzlx=document.getElementById("DropDownList2").value;//求职业类型 value值 0表示是其他
    if(qzlx==-1)
    {
        qzlx="";
    }
    else
    {
        qzlx=escape(qzlx);
    }
    var zc=document.getElementById("DropDownList3").value;//职称
    if(zc==-1)
    {
        zc="";
    }
    else
    {
        zc=document.getElementById("DropDownList3").options[document.getElementById("DropDownList3").selectedIndex].text;
        zc=escape(zc);
    }
    var shen=document.getElementById("DropDownList4").value;//省份
    if(shen==-1)
    {
        shen="";
    }
    var text=document.getElementById("TextBox3").value;//搜索内容
    if(text=="搜索内容")
    {
        text="";
    }
    else
    {
        text=escape(text);
    }
    var shi=document.getElementById("DropDownList5").value;//省份
    if(shi==-1)
    {
        shi="";
    }
    var xiang=document.getElementById("DropDownList6").value;//省份
    if(xiang==-1)
    {
        xiang="";
    }
    //*---------------------------------------------------市  与 县 还未写-----------------------
    window.location.href='jobtext-'+zylb+'-'+qzlx+'-'+zc+'-'+shen+'-'+text+'-'+shi+'-'+xiang+'-1.html';
}
function page_jobpage(page,text,zylb,qzlx,zc,shen,shi,xiang)
{
    text=escape(text);
    zylb=escape(zylb);
    qzlx=escape(qzlx);
    zc=escape(zc);
      window.location.href='jobtext-'+zylb+'-'+qzlx+'-'+zc+'-'+shen+'-'+text+'-'+shi+'-'+xiang+'-'+page+'.html';
}
function page_pepage(page,zwxx,zylb,xl,zc,shen,city)
{
    zwxx=escape(zwxx);
    zylb=escape(zylb);
    xl=escape(xl);
    zc=escape(zc);
    window.location.href='resumetext-'+zylb+'-'+xl+'-'+zc+'-'+shen+'-'+city+'-'+zwxx+'-'+page+'.html';
}