var gaXinzhi =new Array();
gaXinzhi[1]="营运管理";
gaXinzhi[2]="采购招商";
gaXinzhi[3]="市场拓展";
gaXinzhi[4]="营销企划";
gaXinzhi[5]="客户服务";
gaXinzhi[6]="人力行政";
gaXinzhi[7]="财务会计";
gaXinzhi[8]="信息技术";
gaXinzhi[9]="物业管理";
gaXinzhi[10]="品牌渠道";
gaXinzhi[11]="商业地产";
gaXinzhi[12]="物业管理"; 
gaXinzhi[13]="其他"; 

var gaDuty = new Array();
gaDuty[1] = new Array(); 
//营运管理类
gaDuty[1][0]="CEO/总裁/总经理";
gaDuty[1][1]="店长/店总";
gaDuty[1][2]="运营副总/总监";
gaDuty[1][3]="管理副总/总监";
gaDuty[1][4]="财务副总/总监";
gaDuty[1][5]="投资副总/总监/经理";
gaDuty[1][6]="区域总监/事业部总监/项目总监";
gaDuty[1][7]="运营部经理/营业部经理";
gaDuty[1][8]="处长/经理/主任";
gaDuty[1][9]="楼层经理/主管";
gaDuty[1][10]="品类经理/主管";
gaDuty[1][11]="主管/课长";
gaDuty[1][12]="组长/领班";

 gaDuty[2] = new Array();
//采购招商类 
  gaDuty[2][0]="采购总经理/采购总监";
gaDuty[2][1]="采购经理/采购主管";
gaDuty[2][2]="采购助理/采购专员";
gaDuty[2][3]="招商总监";
gaDuty[2][4]="招商经理/招商主管";
gaDuty[2][5]="品牌经理/品牌主管";

 gaDuty[3] = new Array();
//市场拓展类  
  gaDuty[3][0]="市场总监/拓展总监/开发总监";
  gaDuty[3][1]="市场部经理/主管/专员";
  gaDuty[3][2]="拓展经理/开发经理/调研经理";
gaDuty[3][3]="拓展主管/开发主管/调研主管";
gaDuty[3][4]="拓展/开发/调研/选址";

 gaDuty[4] = new Array();
//营销企划类 
gaDuty[4][0]="营销总监/企划总监/策划总监";
gaDuty[4][1]="营销经理/企划经理/策划经理";
gaDuty[4][2]="营销主管/企划主管/策划主管";
gaDuty[4][3]="企划师/策划师";
gaDuty[4][4]="平面设计师/美工";
gaDuty[4][5]="三维设计/商业空间设计师";

 gaDuty[5] = new Array();
//客户服务类 
gaDuty[5][0]="客服经理/客服主管";
gaDuty[5][1]="投诉经理/投诉主管";
gaDuty[5][2]="客服专员";

 gaDuty[6] = new Array();
//人力行政类  
   gaDuty[6][0]="人资经理/人资主管";
   gaDuty[6][1]="人资助理/人事文员";
gaDuty[6][2]="培训经理/培训主管/培训师";
gaDuty[6][3]="劳资经理/劳资主管";
gaDuty[6][4]="薪酬经理/薪酬主管";
gaDuty[6][5]=" 招聘经理/招聘主管";
gaDuty[6][6]="行政经理/行政主管/办公室主任";
gaDuty[6][7]="公关经理/公关主管";
gaDuty[6][8]="外联经理/外联主管"; 
gaDuty[6][9]="法务经理/主管/专员/律师";

 gaDuty[7] = new Array();
//财务会计类
	gaDuty[7][0]="财务经理/财务主管";
gaDuty[7][1]="会计/审计/核算";
gaDuty[7][2]="出纳/结算";
gaDuty[7][3]="收银主管/收银员";

 gaDuty[8] = new Array();
//信息技术类
	gaDuty[8][0]="电脑部经理/信息部经理";
gaDuty[8][1]="信息主管/IT主管";
gaDuty[8][2]="电脑/工程/维修";
gaDuty[8][3]="系统维护工程师";
gaDuty[8][4]="软件维护工程师";
gaDuty[8][5]="程序员/程序设计师";

 gaDuty[9] = new Array();
//物业管理类
gaDuty[9][0]="工程部经理";
gaDuty[9][1]="工程主管/工程师";
gaDuty[9][2]="安保经理";
gaDuty[9][3]="保安主管/消防主管/治安主管";
gaDuty[9][4]="保洁经理/保洁主管";
gaDuty[9][5]="后勤物业经理/后勤物业主管";
gaDuty[9][6]="质检经理/质检主管";
gaDuty[9][7]="防损经理/防损主管";

 gaDuty[10] = new Array();
//品牌渠道类
		gaDuty[10][0]="区域经理/区域主管";
gaDuty[10][1]="拓展经理/拓展主管";
gaDuty[10][2]="市场代表/销售代表";
gaDuty[10][3]="专业卖手";
gaDuty[10][4]="陈列师";

 gaDuty[11] = new Array();
//商业地产类
gaDuty[11][0]="项目总监/运营总监/项目经理";
gaDuty[11][1]="策划总监/营销总监";
gaDuty[11][2]="策划经理/策划主管";
gaDuty[11][3]="招商总监/招商经理/招商主管";
gaDuty[11][4]="销售经理/销售主管";
gaDuty[11][5]="投资顾问/融资顾问";
gaDuty[11][6]="开发顾问/评估顾问";
gaDuty[11][7]="项目配套工程师";
gaDuty[11][8]="环境设计师/规划师";
gaDuty[11][9]="商业规划师/策划师";

//物流管理类
 gaDuty[12] = new Array();
gaDuty[12][0]="配送中心经理/主管";
gaDuty[12][1]="物流专员/助理";
gaDuty[12][2]="仓库管理";
gaDuty[12][3]="运输经理/主管";
//其他
 gaDuty[13] = new Array();
gaDuty[13][0]="其他";

var myxinzhi, myduty;
function optionXinzhi(thefield)
{  var liLength;
  var i;
  liLength = thefield.options.length = gaXinzhi.length ;     
	thefield.options[0].value = "";
	thefield.options[0].text = "选择职位类别";
	for ( i = 1; i < liLength; i ++ )
	{
		thefield.options[i].value = gaXinzhi[i];
		thefield.options[i].text = gaXinzhi[i];
		if (myxinzhi!= "undefined" && thefield.options[i].value == myxinzhi)
			{  thefield.options[i].selected=true;
					XinzhiChange(thefield.parent);
			 }
	}
}
 

function XinzhiChange(theform)
{
var liLength;
var i;
if ( theform.xinzhi.selectedIndex >= 1 )
{
	theform.duty.options.length = gaDuty[theform.xinzhi.selectedIndex].length + 1;
	liLength = theform.duty.options.length;
	theform.duty.options[0].value = "";
	theform.duty.options[0].text = "选择职位";
	for ( i = 1; i < liLength; i ++ )
	{
		theform.duty.options[i].value = gaDuty[theform.xinzhi.selectedIndex][i-1];
		theform.duty.options[i].text = gaDuty[theform.xinzhi.selectedIndex][i-1];
		if (myduty!= "undefined" && theform.duty.options[i].value == myduty)
			{  theform.duty.options[i].selected=true; 
			 }
	}
}
else
{
	theform.duty.options.length = 1;
	theform.duty.options[0].value = "";
	theform.duty.options[0].text = "选择职位";
}
}
var gaArea=new Array();
gaArea[1]="华东";
gaArea[2]="华南";
gaArea[3]="华中";
gaArea[4]="华北";
gaArea[5]="西南";
gaArea[6]="西北";
gaArea[7]="东北";

var gaAreaCity=new Array();
gaAreaCity[1]=new Array();
//华东：
  gaAreaCity[1][0]="上海";
  gaAreaCity[1][1]="南京"; 
  gaAreaCity[1][2]="苏州"; 
  gaAreaCity[1][3]="无锡"; 
  gaAreaCity[1][4]="杭州"; 
  gaAreaCity[1][5]="宁波"; 
  gaAreaCity[1][6]="温州"; 
  gaAreaCity[1][7]="绍兴";  
  gaAreaCity[1][8]="合肥"; 
  gaAreaCity[1][9]="济南"; 
  gaAreaCity[1][10]="青岛";  
  gaAreaCity[1][11]="厦门"; 
  gaAreaCity[1][12]="福州"; 
  
//华南：
gaAreaCity[2]=new Array();
  gaAreaCity[2][0]="广州"; 
  gaAreaCity[2][1]="深圳"; 
  gaAreaCity[2][2]="珠海"; 
  gaAreaCity[2][3]="东莞"; 
  gaAreaCity[2][4]="南宁"; 
  gaAreaCity[2][5]="海口"; 
  gaAreaCity[2][6]="香港"; 
  gaAreaCity[2][7]="台湾"; 
  
//华中：
gaAreaCity[3]=new Array();
	gaAreaCity[3][0]="武汉"; 
  gaAreaCity[3][1]="长沙"; 
  gaAreaCity[3][2]="湘潭"; 
  gaAreaCity[3][3]="郑州"; 
  gaAreaCity[3][4]="洛阳"; 
  gaAreaCity[3][5]="赣州"; 
  gaAreaCity[3][6]="南昌"; 
  
//华北：
gaAreaCity[4]=new Array();
	gaAreaCity[4][0]="北京"; 
  gaAreaCity[4][1]="天津"; 
  gaAreaCity[4][2]="太原"; 
  gaAreaCity[4][3]="呼和浩特"; 
  gaAreaCity[4][4]="石家庄"; 
  gaAreaCity[4][5]="唐山"; 
  
//西南：
gaAreaCity[5]=new Array();
  gaAreaCity[5][0]="成都"; 
  gaAreaCity[5][1]="昆明"; 
  gaAreaCity[5][2]="重庆"; 
  gaAreaCity[5][3]="贵阳"; 
  
//西北：
gaAreaCity[6]=new Array();
  gaAreaCity[6][0]="西安";
  gaAreaCity[6][1]="兰州"; 
  gaAreaCity[6][2]="银川"; 
  gaAreaCity[6][3]="西宁"; 
  gaAreaCity[6][4]="乌鲁木齐"; 
  
//东北：
gaAreaCity[7]=new Array();
  gaAreaCity[7][0]="沈阳";
  gaAreaCity[7][1]="大连"; 
  gaAreaCity[7][2]="长春"; 
  gaAreaCity[7][3]="哈尔滨"; 

 
function optionArea(theform)
{  var liLength;
  var i;
  liLength = theform.area.options.length = gaArea.length ;     
	theform.area.options[0].value = "";
	theform.area.options[0].text = "-地区-";
	for ( i = 1; i < liLength; i ++ )
	{
		theform.area.options[i].value = gaArea[i];
		theform.area.options[i].text = gaArea[i];
		 
	}
}
  
function AreaChange(theform)
{
var liLength;
var i;
if ( theform.area.selectedIndex >= 1 )
{
		theform.city.options.length = gaAreaCity[theform.area.selectedIndex].length + 1;
		liLength = theform.city.options.length;
		theform.city.options[0].value = "";
		theform.city.options[0].text = "-城市-";
		for ( i = 1; i < liLength; i ++ )
		{
			theform.city.options[i].value = gaAreaCity[theform.area.selectedIndex][i-1];
			theform.city.options[i].text = gaAreaCity[theform.area.selectedIndex][i-1];
		}
}
else
{
		theform.city.options.length = 1;
		theform.city.options[0].value = "";
		theform.city.options[0].text = "选择城市";
}
}

 var gaYetai = new Array();
 var txtYetai = new Array();
 gaYetai[1]="1";
 txtYetai[1]="综合";
  gaYetai[2]="2";
 txtYetai[2]="购物中心";
  gaYetai[3]="3";
 txtYetai[3]="超市";
  gaYetai[4]="4";
 txtYetai[4]="百货店";
  gaYetai[5]="5";
 txtYetai[5]="便利店";
  gaYetai[6]="10";
 txtYetai[6]="家居建材店"; 
  gaYetai[7]="6";
 txtYetai[7]="专业专卖店"; 
  gaYetai[8]="13";
 txtYetai[8]="商业地产";
  gaYetai[9]="20";
 txtYetai[9]="其他"; 
 
function CompChange(theform)
{
  var gindex;
  clearopts(theform.compvalue);
	var condtype=theform.comp.options[theform.comp.selectedIndex].value;
	// alert(condtype);
	if(condtype=="1")
	{
		for(i=1;i<gaArea.length;i++)
		{
				for(j=0;j<gaCity[i].length-1;j++)
				  {
				 		var oOption = document.createElement("OPTION"); 
						oOption.text= gaCity[i][j];
						oOption.value= gaCity[i][j];
						theform.compvalue.add(oOption); 
				  }
		}
	}
else if(condtype=="2")
  {  
  	for(i=1;i<gaXinzhi.length;i++)
		{
			if(theform.xinzhi.value==gaXinzhi[i])
			  {  gindex = i;  }
		}
   
  		for(j=0;j<gaDuty[gindex].length;j++)
				  {
				 		var oOption = document.createElement("OPTION"); 
						oOption.text= gaDuty[gindex][j];
						oOption.value= gaDuty[gindex][j];
						theform.compvalue.add(oOption); 
				  }
  }
 
else if(condtype=="3")
  {  
  		for(j=1;j<gaYetai.length;j++)
				  {
				 		var oOption = document.createElement("OPTION"); 
						oOption.text= txtYetai[j];
						oOption.value= gaYetai[j];
						theform.compvalue.add(oOption); 
				  }
  }
  
}

function initComp(theform)
{
		var condtype=theform.contype.value;
		if(condtype=="")
		{  condtype=1; }
		
				theform.comp.selectedIndex=condtype-1;
				CompChange(theform);
				if(theform.convalue.value!="")
				{
					 
				for(i=0; i<theform.compvalue.options.length;i++)
					{
						if(theform.compvalue.options[i].value==theform.convalue.value)
							theform.compvalue.selectedIndex=i;
				}
				
			}
	 
}

function clearopts(obj1) 
{ 
	len=obj1.length; 
	if(len>0)
	{
	for(i=len-1;i>=0;i--) 
		obj1.options.remove(i); 
	}
} 
