﻿/*
#   教育程度、政治面貌、联系方式、专业类别、公司性质、公司规模、从事行业、职位级别、薪水类型、婚姻状况、证件类型、到岗时间
*/
/*
#   信息: 教育程度
#	Degree selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showDegree(select_Degree_name); ---显示列表
#	selectDegree(select_Degree_name,value); ---选择列表
*/
  Degree = new Array("请选择","博士","MBA","硕士","本科","大专","中专","中技","高中","初中");
  DegVal = new Array("","9","8","7","6","5","4","3","2","1");

 function write_DegreeOption(obj,txt,val)
 {
    obj.options[obj.length] = new Option(txt,val);
 }
function returnDegree(theDegVal)
 {
   for(I=0;I<Degree.length;I++)
   {
	if(DegVal[I]==theDegVal)
	{
	document.write(Degree[I]);	
	return 0;
	}
   }
 }
 
 function showDegree(obj)
 {
   for(I=0;I<Degree.length;I++)
   {
     write_DegreeOption(obj,Degree[I],DegVal[I]);          
   }
 }
 
 function selectDegree(theDegree,selectDegree)
 {
	for(i=0;i<theDegree.options.length;i++)
	{   
	   if(theDegree.options[i].value==selectDegree)
	   {
		theDegree.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 政治面貌
#	polity selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showPolity(select_Polity_name); ---显示列表
#	selectPolity(select_Polity_name,value); ---选择列表
*/
  Polity = new Array("请选择","党员","团员","群众","民主党派","其他");
  PolityVal = new Array("","5","4","3","2","1");

 function write_PolityOption(obj,txt,val)
 {
    obj.options[obj.length] = new Option(txt,val);
 }
 
function returnPolity(thePolityVal)
 {
   for(I=0;I<Polity.length;I++)
   {
	if(PolityVal[I]==thePolityVal)
	{
	document.write(Polity[I]);	
	return 0;
	}
   }
 }

 function showPolity(obj)
 {
   for(I=0;I<Polity.length;I++)
   {
     write_PolityOption(obj,Polity[I],PolityVal[I]);          
   }
 }
 
 function selectPolity(thePolity,selectPolity)
 {
	for(i=0;i<thePolity.options.length;i++)
	{   
	   if(thePolity.options[i].value==selectPolity)
	   {
		thePolity.options[i].selected=true;
		return 0;
	   }
	}
 }
/*
#   信息: 联系方式
#	contact selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showContact(select_Contact_name); ---显示列表
#	selectContact(select_Contact_name,value); ---选择列表
*/
  Contact = new Array("手机","家庭电话","工作电话","宿舍电话","传真","MSN","QQ","其他");
  ContactVal = new Array("1","2","3","4","5","6","7","8");

 function write_ContactOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
 function returnContact(theContactVal)
 {
   for(I=0;I<Contact.length;I++)
   {
	if(ContactVal[I]==theContactVal)
	{
	document.write(Contact[I]);	
	return 0;
	}
   }
 }

 function showContact(obj)
 {
   for(I=0;I<Contact.length;I++)
   {
     write_ContactOption(obj,Contact[I],ContactVal[I]);          
   }
 }
 
 function selectContact(theContact,selectContact)
 {
	for(i=0;i<theContact.options.length;i++)
	{   
	   if(theContact.options[i].value==selectContact)
	   {
		theContact.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 专业类别
#	MajorCategory selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showMajorCategory(select_MajorCategory_name); ---显示列表
#	selectMajorCategory(select_MajorCategory_name,value); ---选择列表
*/

  MajorCategory = new Array("建筑学","装饰设计","土木工程","给排水工程","电气工程","测绘工程","环境工程","地质工程","空调工程","设备工程","景观工程","自动控制","工程管理", "市场营销","管理科学","财务管理","工业设计","施工管理","物业管理","会计学","新闻学","管理学","文学","房地产策划","房地产管理","工程预决算","人力资源管理","计算机科学与技术","信息管理与信息系统", "园林设计","规划设计","水利水电工程建筑","其他");
  MajorCategoryVal = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","21","22","23","24","25","26","27","28","29","30","32","33","34","31");
 function write_MajorCategoryOption(obj,txt,val)
 {
    obj.options[obj.length] = new Option(txt,val);
 }
 
 function showMajorCategory(obj)
 {
   for(I=0;I<MajorCategory.length;I++)
   {
     write_MajorCategoryOption(obj,MajorCategory[I],MajorCategoryVal[I]);          
   }
 }
  
 function returnMajorCategory(theMajorCategoryVal)
 {
   for(I=0;I<MajorCategory.length;I++)
   {
	if(MajorCategoryVal[I]==theMajorCategoryVal)
	{
	document.write(MajorCategory[I]);	
	return 0;
	}
   }
 }

 function selectMajorCategory(theMajorCategory,selectMajorCategory)
 {
	for(i=0;i<theMajorCategory.options.length;i++)
	{   
	   if(theMajorCategory.options[i].value==selectMajorCategory)
	   {
		theMajorCategory.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 公司性质
#	OrgProperty selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showOrgProperty(select_OrgProperty_name); ---显示列表
#	selectOrgProperty(select_OrgProperty_name,value); ---选择列表
*/
  OrgProperty = new Array("请选择","外商独资","中外合营","私营企业","国有企业","国内上市公司","政府机关","事业单位","集团公司");
  OrgPropertyVal = new Array("","1","2","3","4","5","6","7","8");

 function write_OrgPropertyOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returnOrgProperty(theOrgPropertyVal)
 {
   for(I=0;I<OrgProperty.length;I++)
   {
	if(OrgPropertyVal[I]==theOrgPropertyVal)
	{
	document.write(OrgProperty[I]);	
	return 0;
	}
   }
 }

 function showOrgProperty(obj)
 {
   for(I=0;I<OrgProperty.length;I++)
   {
     write_OrgPropertyOption(obj,OrgProperty[I],OrgPropertyVal[I]);          
   }
 }
 
 function selectOrgProperty(theOrgProperty,selectOrgProperty)
 {
	for(i=0;i<theOrgProperty.options.length;i++)
	{   
	   if(theOrgProperty.options[i].value==selectOrgProperty)
	   {
		theOrgProperty.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 公司规模
#	OrgSize selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showOrgSize(select_OrgSize_name); ---显示列表
#	selectOrgSize(select_OrgSize_name,value); ---选择列表
*/
  OrgSize = new Array("请选择","50人以下","51-100人","101-200人","201-500人","501-1000人","1000人以上");
  OrgSizeVal = new Array("","1","2","3","4","5","6");

 function write_OrgSizeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returnOrgSize(theOrgSizeVal)
 {
   for(I=0;I<OrgSize.length;I++)
   {
	if(OrgSizeVal[I]==theOrgSizeVal)
	{
	document.write(OrgSize[I]);	
	return 0;
	}
   }
 }
 
 function showOrgSize(obj)
 {
   for(I=0;I<OrgSize.length;I++)
   {
     write_OrgSizeOption(obj,OrgSize[I],OrgSizeVal[I]);          
   }
 }
 
 function selectOrgSize(theOrgSize,selectOrgSize)
 {
	for(i=0;i<theOrgSize.options.length;i++)
	{   
	   if(theOrgSize.options[i].value==selectOrgSize)
	   {
		theOrgSize.options[i].selected=true;
		return 0;
	   }
	}
 }
 
 
 
 /*
#   信息: 作品主类别
#	Proj selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showHomeTypeid(select_hometypeid_name); ---显示列表
#	selectHomeTypeid(select_hometypeid,value); ---选择列表
*/
  personproj = new Array("请选择","建筑设计","勘察测绘","规划设计","园林景观","装饰装潢","工程监理","工程施工","其它");
  personprojVal = new Array("","1","2","3","4","5","6","7","8","9");

 function write_HomeTypeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returnHomeType(theOrgSizeVal)
 {
   for(I=0;I<personproj.length;I++)
   {
	if(personprojVal[I]==theOrgSizeVal)
	{
	document.write(personproj[I]);	
	return 0;
	}
   }
 }
 
 function showHomeTypeid(obj)
 {
   for(I=0;I<personproj.length;I++)
   {
     write_HomeTypeOption(obj,personproj[I],personprojVal[I]);          
   }
 }
 
 function selectHomeTypeid(theOrgSize,selectOrgSize)
 {
	for(i=0;i<theOrgSize.options.length;i++)
	{   
	   if(theOrgSize.options[i].value==selectOrgSize)
	   {
		theOrgSize.options[i].selected=true;
		return 0;
	   }
	}
 }
 
 /*
#   信息: 作品副类别
#	Proj selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showtypeid(select_typeid_name); ---显示列表
#	selecttypeid(select_typeid,value); ---选择列表
*/
  personproj1 = new Array("请选择","住宅空间","别墅空间","办公空间","商业空间 ","餐饮空间","展览展示","酒店宾馆","大堂客厅","大堂客厅","其它");
  personproj1Val = new Array("","1","2","3","4","5","6","7","8","9");

 function write_typeidOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returntypeid(theOrgSizeVal)
 {
   for(I=0;I<personproj1.length;I++)
   {
	if(personproj1Val[I]==theOrgSizeVal)
	{
	document.write(personproj1[I]);	
	return 0;
	}
   }
 }
 
 function showtypeid(obj)
 {
   for(I=0;I<personproj1.length;I++)
   {
     write_typeidOption(obj,personproj1[I],personproj1Val[I]);          
   }
 }
 
 function selecttypeid(theOrgSize,selectOrgSize)
 {
	for(i=0;i<theOrgSize.options.length;i++)
	{   
	   if(theOrgSize.options[i].value==selectOrgSize)
	   {
		theOrgSize.options[i].selected=true;
		return 0;
	   }
	}
 }
 
 
 
 /*
#   信息: 留言类别
#	forum selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showForumType(select_hometypeid_name); ---显示列表
#	selectForumType(select_hometypeid,value); ---选择列表
*/
  unitforumj = new Array("请选择","操作问题","人才招聘","简历填写","网站错误","意见建议","其它");
  unitforumjVal = new Array("","1","2","3","4","5","6","7");

 function write_HomeTypeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returnForumType(theOrgSizeVal)
 {
   for(I=0;I<unitforumj.length;I++)
   {
	if(unitforumjVal[I]==theOrgSizeVal)
	{
	document.write(unitforumj[I]);	
	return 0;
	}
   }
 }
 
 function showForumType(obj)
 {
   for(I=0;I<unitforumj.length;I++)
   {
     write_HomeTypeOption(obj,unitforumj[I],unitforumjVal[I]);          
   }
 }
 
 function selectForumType(theOrgSize,selectOrgSize)
 {
	for(i=0;i<theOrgSize.options.length;i++)
	{   
	   if(theOrgSize.options[i].value==selectOrgSize)
	   {
		theOrgSize.options[i].selected=true;
		return 0;
	   }
	}
 }
 
/*
#   信息: 从事行业
#	Trade selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showTrade(select_Trade_name); ---显示列表
#	selectTrade(select_Trade_name,value); ---选择列表
#	addTrade(select_Trade_name,value);添加选择项

  Trade = new Array("计算机","计算机硬件/网络设备","IT服务/系统集成","互联网/电子商务","电子/微电子","通信(设备/运营/增值服务)","广告/会展/公关","房地产开发/建筑与工程","房地产服务(中介/物业管理/监理/设计院)","家居/室内设计/装潢","中介服务(人才/商标专利)","专业服务(咨询/财会/法律等)","银行","保险","基金/证券/期货/投资","贸易/进出口","媒体/出版/文化传播","印刷/包装/造纸","快速消费品(食品/饮料/日化/烟酒等)","耐用消费品(服饰/纺织/家具)","家电业","办公设备/用品","旅游/酒店/餐饮服务","批发/零售","交通/运输/物流","娱乐/运动/休闲","制药/生物工程","医疗/保健/美容/卫生服务","医疗设备/器械","环保","化工","采掘/冶炼","能源(电力/石油/水利)","仪器/仪表/工业自动化/电气","汽车/摩托车(制造/维护/配件/销售/服务)","机械制造/机电/重工","原材料及加工(金属/木材/橡胶/塑料/玻璃/陶瓷/建材)","教育/培训/科研/院校","政府/非营利机构","其他");
  TradeVal = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40");
*/
 Trade = new Array("建筑设计","规划设计","勘察设计","园林景观","装饰装潢","施工企业","房 地 产","物业管理","建材厂商","造价咨询","工程监理","综合其他");
 TradeVal = new Array("1","2","3","4","5","6","7","8","9","10","11","12");
 function write_TradeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 function addTrade(obj,val)
 {
	for(I=0;I<TradeVal.length;I++)
   {
	if(TradeVal[I]==val)
	{
	write_TradeOption(obj,Trade[I],TradeVal[I]);	
	return 0;
	}
   }
 }
function returnTrade(theTradeVal)
 {
   for(I=0;I<Trade.length;I++)
   {
	if(TradeVal[I]==theTradeVal)
	{
	document.write(Trade[I]);	
	return 0;
	}
   }
 }

 function showTrade(obj)
 {
   for(I=0;I<Trade.length;I++)
   {
     write_TradeOption(obj,Trade[I],TradeVal[I]);          
   }
 }
 
 function selectTrade(theTrade,selectTrade)
 {
	for(i=0;i<theTrade.options.length;i++)
	{   
	   if(theTrade.options[i].value==selectTrade)
	   {
		theTrade.options[i].selected=true;
		return 0;
	   }
	}
 }
 
 /*
#   信息: 职位级别
#	CareerLevel selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showCareerLevel(select_CareerLevel_name); ---显示列表
#	selectCareerLevel(select_CareerLevel_name,value); ---选择列表
*/
  CareerLevel = new Array("请选择","高级决策层(CEO/EVP/GM)","高级职位(管理类)","高级职位(非管理类)","中级职位(两年以上工作经验)","初级职位(两年以下工作经验)","学生");
  CareerLevelVal = new Array("","1","2","3","4","5","6");

 function write_CareerLevelOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 
function returnCareerLevel(theCareerLevelVal)
 {
   for(I=0;I<CareerLevel.length;I++)
   {
	if(CareerLevelVal[I]==theCareerLevelVal)
	{
	document.write(CareerLevel[I]);	
	return 0;
	}
   }
 }

 function showCareerLevel(obj)
 {
   for(I=0;I<CareerLevel.length;I++)
   {
     write_CareerLevelOption(obj,CareerLevel[I],CareerLevelVal[I]);          
   }
 }
 
 function selectCareerLevel(theCareerLevel,selectCareerLevel)
 {
	for(i=0;i<theCareerLevel.options.length;i++)
	{   
	   if(theCareerLevel.options[i].value==selectCareerLevel)
	   {
		theCareerLevel.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 薪水类型
#	SalaryType selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showSalaryType(select_SalaryType_name); ---显示列表
#	selectSalaryType(select_SalaryType_name,value); ---选择列表
*/
  SalaryType = new Array("月薪","年薪","日薪");
  SalaryTypeVal = new Array("2","1","3");

 function write_SalaryTypeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
 function returnSalaryType(theSalaryTypeVal)
 {
   for(I=0;I<SalaryType.length;I++)
   {
	if(SalaryTypeVal[I]==theSalaryTypeVal)
	{
	document.write(SalaryType[I]);	
	return 0;
	}
   }
 }

 function showSalaryType(obj)
 {
   for(I=0;I<SalaryType.length;I++)
   {
     write_SalaryTypeOption(obj,SalaryType[I],SalaryTypeVal[I]);          
   }
 }
 
 function selectSalaryType(theSalaryType,selectSalaryType)
 {
	for(i=0;i<theSalaryType.options.length;i++)
	{   
	   if(theSalaryType.options[i].value==selectSalaryType)
	   {
		theSalaryType.options[i].selected=true;
		return 0;
	   }
	}
 }
/*
#   信息: 婚姻状况
#	FYState selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showFYState(select_FYState_name); ---显示列表
#	selectFYState(select_FYState_name,value); ---选择列表
*/
  FYState = new Array("未婚","已婚","其他");
  FYStateVal = new Array("0","1","2");

 function write_FYStateOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
function returnFYState(theFYStateVal)
 {
   for(I=0;I<FYState.length;I++)
   {
	if(FYStateVal[I]==theFYStateVal)
	{
	document.write(FYState[I]);	
	return 0;
	}
   }
 }

 function showFYState(obj)
 {
   for(I=0;I<FYState.length;I++)
   {
     write_FYStateOption(obj,FYState[I],FYStateVal[I]);          
   }
 }
 
 function selectFYState(theFYState,selectFYState)
 {
	for(i=0;i<theFYState.options.length;i++)
	{   
	   if(theFYState.options[i].value==selectFYState)
	   {
		theFYState.options[i].selected=true;
		return 0;
	   }
	}
 }
/*
#   信息: 证件类型
#	ChangeType selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showChangeType(select_ChangeType_name); ---显示列表
#	selectChangeType(select_ChangeType_name,value); ---选择列表
*/
  ChangeType = new Array("身份证","护照","其他证件");
  ChangeTypeVal = new Array("0","1","2");

 function write_ChangeTypeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
function returnChangeType(theChangeTypeVal)
 {
   for(I=0;I<ChangeType.length;I++)
   {
	if(ChangeTypeVal[I]==theChangeTypeVal)
	{
	document.write(ChangeType[I]);	
	return 0;
	}
   }
 }

 function showChangeType(obj)
 {
   for(I=0;I<ChangeType.length;I++)
   {
     write_ChangeTypeOption(obj,ChangeType[I],ChangeTypeVal[I]);          
   }
 }
 
 function selectChangeType(theChangeType,selectChangeType)
 {
	for(i=0;i<theChangeType.options.length;i++)
	{   
	   if(theChangeType.options[i].value==selectChangeType)
	   {
		theChangeType.options[i].selected=true;
		return 0;
	   }
	}
 }
 /*
#   信息: 到岗时间
#	JoinDateType selected       
#	作者:
#   郭挺   2006-01-09 
#	接口:
# 	showJoinDateType(select_JoinDateType_name); ---显示列表
#	selectJoinDateType(select_JoinDateType_name,value); ---选择列表
*/
  JoinDateType = new Array("一周内","一月内","随时到岗","面谈");
  JoinDateTypeVal = new Array("1","2","3","4");

 function write_JoinDateTypeOption(obj,txt,val)
 {
     obj.options[obj.length] = new Option(txt,val);
 }
function returnJoinDateType(theJoinDateTypeVal)
 {
   for(I=0;I<JoinDateType.length;I++)
   {
	if(JoinDateTypeVal[I]==theJoinDateTypeVal)
	{
	document.write(JoinDateType[I]);	
	return 0;
	}
   }
 }

 function showJoinDateType(obj)
 {
   for(I=0;I<JoinDateType.length;I++)
   {
     write_JoinDateTypeOption(obj,JoinDateType[I],JoinDateTypeVal[I]);          
   }
 }
 
 function selectJoinDateType(theJoinDateType,selectJoinDateType)
 {
	for(i=0;i<theJoinDateType.options.length;i++)
	{   
	   if(theJoinDateType.options[i].value==selectJoinDateType)
	   {
		theJoinDateType.options[i].selected=true;
		return 0;
	   }
	}
 }