function provinceList()
{
	this.length=10;
	this[0] = new Option("请选择职业类别","");
	this[1] = new Option("销售/市场营销","销售/市场营销");
	this[2] = new Option("人力资源","人力资源");
	this[3] = new Option("操作/客服/单证","操作/客服/单证");
	this[4] = new Option("财务","财务");
	this[5] = new Option("仓储/运输/配送","仓储/运输/配送");
	this[6] = new Option("行政管理","行政管理");
	this[7] = new Option("高级管理部门","高级管理部门");
	this[8] = new Option("采购","采购");
	this[9] = new Option("其他","其他");
	return this;
}
function cityList()
{
	this.length=10;
	this[0] = new Array(1);
	    this[0][0] = new Option("请选择职位名称","");
	this[1] = new Array(10);
		this[1][0] = new Option("销售代表","销售代表");
		this[1][1] = new Option("销售主管/经理","销售主管/经理");
		this[1][2] = new Option("销售总监","销售总监");
		this[1][3] = new Option("同行销售","同行销售");
		this[1][4] = new Option("电话销售","电话销售");
		this[1][5] = new Option("海外拓展","海外拓展");
		this[1][6] = new Option("外贸业务员","外贸业务员");
		this[1][7] = new Option("市场专员","市场专员");
		this[1][8] = new Option("市场主管/经理","市场主管/经理");
		this[1][9] = new Option("市场总监","市场总监");
		
		
	this[2] = new Array(9);
		this[2][0] = new Option("招聘专员","招聘专员");
		this[2][1] = new Option("培训专员","培训专员");
		this[2][2] = new Option("绩效考核专员","绩效考核专员");
		this[2][3] = new Option("薪酬专员","薪酬专员");
		this[2][4] = new Option("人事专员","人事专员");
		this[2][5] = new Option("人力资源助理","人力资源助理");
		this[2][6] = new Option("人力资源主管/经理","人力资源主管/经理");
		this[2][7] = new Option("人力资源总监","人力资源总监");
		this[2][8] = new Option("员工关系专员","员工关系专员");
		
	this[3] = new Array(15);
		this[3][0] = new Option("订舱专员","订舱专员");
		this[3][1] = new Option("客服代表","客服代表");
		this[3][2] = new Option("客服助理","客服助理");
		this[3][3] = new Option("客服经理","客服经理");
		this[3][4] = new Option("操作文员","操作文员");
		this[3][5] = new Option("货代操作","货代操作");
		this[3][6] = new Option("拼箱操作","拼箱操作");
		this[3][7] = new Option("码头操作","码头操作");
		this[3][8] = new Option("物流操作","物流操作");
		this[3][9] = new Option("操作经理","操作经理");
		this[3][10] = new Option("报关主管","报关主管");
		this[3][11] = new Option("报关员","报关员");
		this[3][12] = new Option("单证员","单证员");
		this[3][13] = new Option("跟单员","跟单员");
		this[3][14] = new Option("打单员","打单员");
	
		
	this[4] = new Array(6);
		this[4][0] = new Option("出纳","出纳");
		this[4][1] = new Option("会计","会计");
		this[4][2] = new Option("财务","财务");
		this[4][3] = new Option("财务助理","财务助理");
		this[4][4] = new Option("财务主管/经理","财务主管/经理");
		this[4][5] = new Option("财务总监","财务总监");
	this[5] = new Array(14);
		this[5][0] = new Option("物流专员","物流专员");
		this[5][1] = new Option("理货员","理货员");
		this[5][2] = new Option("仓库管理员","仓库管理员");
		this[5][3] = new Option("仓储主管","仓储主管");
		this[5][4] = new Option("保安","保安");
		this[5][5] = new Option("车队队长","车队队长");
		this[5][6] = new Option("调度专员","调度专员");
		this[5][7] = new Option("配送经理","配送经理");
		this[5][8] = new Option("营运负责人","营运负责人");
		this[5][9] = new Option("运输经理","运输经理");
		this[5][10] = new Option("叉车司机","叉车司机");
		this[5][11] = new Option("司机","司机");
		this[5][12] = new Option("搬运工","搬运工");
		this[5][13] = new Option("快递员/配送员","快递员/配送员");
	this[6] = new Array(7);
		this[6][0] = new Option("总经理秘书","总经理秘书");
		this[6][1] = new Option("办公室管理人员","办公室管理人员");
		this[6][2] = new Option("内勤","内勤");
		this[6][3] = new Option("前台","前台");
		this[6][4] = new Option("文员","文员");
		this[6][5] = new Option("行政助理 ","行政助理 ");
		this[6][6] = new Option("行政经理","行政经理");
		
	this[7] = new Array(13);
		this[7][0] = new Option("商务经理","商务经理");
		this[7][1] = new Option("物流经理","物流经理");
		this[7][2] = new Option("物流总监","物流总监");
		this[7][3] = new Option("总裁/副总裁","总裁/副总裁");
		this[7][4] = new Option("总经理","总经理");
		this[7][5] = new Option("海运经理","海运经理");
		this[7][6] = new Option("空运经理","空运经理");
		this[7][7] = new Option("航线经理","航线经理");
		this[7][8] = new Option("总经理助理","总经理助理");
		this[7][9] = new Option("分公司经理","分公司经理");
		this[7][10] = new Option("供应链经理","供应链经理");
		this[7][11] = new Option("供应链总监","供应链总监");
		this[7][12] = new Option("项目经理","项目经理");
	this[8] = new Array(3);
		this[8][0] = new Option("采购员","采购员");
		this[8][1] = new Option("采购助理","采购助理");
		this[8][2] = new Option("采购经理","采购经理");
	this[9] = new Array(7);
		this[9][0] = new Option("储备干部","储备干部");
		this[9][1] = new Option("法务专员","法务专员");
		this[9][2] = new Option("实习生","实习生");
		this[9][3] = new Option("网络管理员","网络管理员");
		this[9][4] = new Option("外语人才","外语人才");
		this[9][5] = new Option("船长","船长");
		this[9][6] = new Option("船员","船员");
	

	return this;
}

provinceOp = new provinceList();
cityOp = new cityList();

function delCity(city)
{
	var len = city.length;
	for(i=0; i<len; i++)
	{
		city.remove(0);
	}
}

function addCity(prov, city)
{
	var index = prov.selectedIndex;
	//alert(index);
	for(j=0; j<cityOp[index].length; j++)
	{
		city.options.add(cityOp[index][j]);
	}
}

function changeProvince(proObj, cityObj)
{
	delCity(cityObj);
	addCity(proObj,cityObj);
	//alert("省份：" + proObj.value + "\t城市：" + cityObj.value);
}

function initialize(proObj, cityObj, provinceID, cityID)
{
	// 初始化省份列表
	for(i=0; i<provinceOp.length; i++)
	{
		proObj.options.add(provinceOp[i]);
	}
	for(j=0; j<proObj.options.length; j++)
	{
		if(proObj.options[j].value == provinceID)
		{
			proObj.options[j].selected = true;
		}
	}
	addCity(proObj, cityObj);
	for(k=0; k<cityObj.options.length; k++)
	{
		if(cityObj.options[k].value == cityID)
		{
			cityObj.options[k].value = true;
		}
	}
}