﻿
function JobSmallTypeResult() 
{ 
    var city=document.getElementById("DropJobBigType");
    AjaxMethod.GetJobSmallType(city.value,JobSmall_Result_CallBack);
}
function JobSmall_Result_CallBack(response)
{
        if (response.value != null)
        {					
            document.getElementById("DropJobSmallType").length=0;
            var ds = response.value;
            if(ds != null && typeof(ds) == "object" && ds.Tables != null)
            {	
                document.getElementById("DropJobSmallType").options.add(new Option("-=请选择岗位小类=-",""));					
                for(var i=0; i<ds.Tables[0].Rows.length; i++)
                {
                    var name=ds.Tables[0].Rows[i].JobSmallTypeItem;
                    var id=ds.Tables[0].Rows[i].JobSmallTypeID;
                    document.getElementById("DropJobSmallType").options.add(new Option(name,id));
                }
            }
        }				
return
}

//下拉框中取值 
function GetJobTypeValue()
{     
    var JobSmallType=document.getElementById("DropJobSmallType");
    var JobSmallTypeindex = JobSmallType.selectedIndex;
    var JobSmallTypeValue = JobSmallType.options[JobSmallTypeindex].value;
    var JobSmallTypeText  = JobSmallType.options[JobSmallTypeindex].text;  
        
    var txt=document.getElementById("Hidden2");
    txt.value=JobSmallTypeText+"|"+JobSmallTypeValue;
}


