看如下例子:
先导入两个js文件:
<script language="JavaScript" src="../../../js/common.js"></script>
<script language="JavaScript" src="../../../js/define.js"></script>

看调用的例子:
<table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr bgcolor="#eeeeee">
            <td width="14%" height="36">&nbsp;</td>
            <td width="12%">工作类型</td>
            <td width="22%"><select name="sjbtype" style="width:160">
                <%=fetchList.fetchOptions("EMP")%> </select></td>
            <td width="10%">月薪范围</td>
            <td width="22%"><select name="sjbpay" style="width:160">
                <%=fetchList.fetchOptions("MP")%> </select></td>
            <td width="20%">&nbsp;</td>
          </tr>
          <tr>
            <td height="31" nowrap>&nbsp;</td>
            <td rowspan="2"> 工作地点<br>
              (最多可选5项) </td>
            <td><select name="sjbaddress" style="width:160" onChange="return backAddress()">
                <%=fetchList.fetchOptionsRegion()%> </select> </td>
            <td> </td>
            <td rowspan="2">  <select
           οndblclick="SelMove('sjbaddresssub')"
           style="FONT-SIZE: 12px; WIDTH: 180px" multiple
           size=8 name=sjbaddresssub>
              </select> </td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="112" nowrap>&nbsp;</td>
            <td id="n_sjbaddress_sub">  <select
               οndblclick=SelMove("sjbaddress_sub","sjbaddresssub",checkselect)
               style="FONT-SIZE: 12px; WIDTH: 180px" multiple
                size=7 name=sjbaddress_sub>
              </select> </td>
            <td> <input type="button" name="Submit" value="添加   》" onClick="SelMove('sjbaddress_sub','sjbaddresssub',checkselect)">
              <br> <input type="button" name="Submit2" value="《   删除" onClick="SelMove('sjbaddresssub')"></td>
            <td>&nbsp;</td>
          </tr>
          <tr bgcolor="#eeeeee">
            <td>&nbsp;</td>
            <td>行业<br>
              (最多可选5项)</td>
            <td><select name="sjbtrade" style="width:160" onChange="return backJob()" ondοndblclick="SelMove('sjbtrade','sjbtradesub',checkselect)" >
                <%=fetchList.fetchOptionsPost()%> </select></td>
            <td><input type="button" name="Submit3" value="添加   》" onClick="SelMove('sjbtrade','sjbtradesub',checkselect)">
              <br> <input type="button" name="Submit22" value="《   删除" onClick="SelMove('sjbtradesub')"></td>
            <td> <select
           οndblclick="SelMove('sjbtradesub')"
           style="FONT-SIZE: 12px; WIDTH: 180px" multiple
           size=6 name=sjbtradesub>
              </select> </td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td nowrap>工作岗位<br>
              (最多可选5项)</td>
            <td id="n_sjbpost"> <select
           οndblclick=SelMove("sjbpost","sjbpostsub",checkselect)
           style="FONT-SIZE: 12px; WIDTH: 180px" multiple
           size=6 name=sjbpost>
              </select> </td>
            <td><br> <input type="button" name="Submit4" value="添加   》" onClick="SelMove('sjbpost','sjbpostsub',checkselect)">
              <br> <input type="button" name="Submit23" value="《   删除" onClick="SelMove('sjbpostsub')">
            </td>
            <td> <select
           οndblclick="SelMove('sjbpostsub')"
           style="FONT-SIZE: 12px; WIDTH: 180px" multiple
           size=6 name=sjbpostsub>
              </select> </td>
            <td>&nbsp;</td>
          </tr>
          <tr bgcolor="#eeeeee">
            <td>&nbsp;</td>
                    <td>曾从事工作<br> <br>
              从事年限 </td>
            <td><input name="sjbworkyear" type="text" size="25"> <br> <br>
              <input name="textfield2" type="text" size="25"></td>
            <td>其他要求</td>
            <td><textarea name="sjbnote" cols="25" rows="5"></textarea></td>
            <td>&nbsp;</td>
          </tr>
          <tr align="center" valign="middle">
            <td height="40" colspan="6"><input type="button" name="Submit5" value="保存" onClick="postskjbFrm()"></td>
          </tr>
        </table>

common.js文件:
//<script language=javascript>

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address./n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number./n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(7,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'./n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required./n'; }
  } if (errors) alert('The following error(s) occurred:/n'+errors);
  document.MM_returnValue = (errors == '');return document.MM_returnValue;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x; 
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
 n=n.substring(0,p);
 }
  if(!(x=d[n])&&d.all) x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n);
  return x;
}

//此函数实现列表中所选择项的删除与移到到别外一个列表中的功能.2001/04/04
//参数表:
//src 源列表
//des 目的列表(如果省略则删除源列表中选中的项)
//exce 如果源列表中某一项的文本与此参数相同则该项不能被移走或删除(可省略)
//d1 指定源列表所在的框架或窗口(如省略则在当前框架或窗口中查找)
//d2 指定目的列表所在的框架或窗口(如省略则在当前框架或窗口中查找)
//
function SelMove(src,des,check,exce,d1,d2,del) {
  //src = ""+src;
  //des = ""+des; 
  if (!src) return false;
        var oSrc=MM_findObj(src,d1);
        if (!oSrc) return false;
  
        if (!des) {
                for (i=0;i<oSrc.options.length;i++) {
                        if (oSrc.options(i).selected){
                                if (oSrc.options(i).innerText!=exce) {
                                        oSrc.options.remove(i);
                                        i--;
                                }
                        }
                }
        }
        else {
                var oDes=MM_findObj(des,d2);
                if (!oDes) return false;
                for (i=0;i<oSrc.options.length;i++) {
                        var oSrcOption =oSrc.options.item(i);
                        if(oSrcOption.selected){
                                if(check && check(oDes,oSrcOption)){
                                        if(oSrcOption.innerText!=exce) {
                                                var oOption = document.createElement("OPTION");
                                                oDes.options.add(oOption);
                                                oOption.innerText = oSrcOption.innerText;
                                                oOption.value = oSrcOption.value;
                                                oSrcOption.selected=false;
                                                if(del) {oSrc.options.remove(i);i--;}
                                        }
                                }
                        }
                }
        }
}

function SelSelectedAll(oSrc){
        if(!oSrc) return false;
        var i;
        for(i=0;i<oSrc.options.length;i++){
                oSrc.options.item(i).selected=true;
        }

}

function SelAdd(oDes,text,value){
        if (!oDes) return false;
        var oOption=document.createElement("OPTION");
        oDes.options.add(oOption);
        oOption.innerText=text;
        oOption.value=value;
}
function SelRemove(oSrc,name,value){
        if(!oSrc) return false;
        var i;
        for(i=0;i<oSrc.options.length;i++){
                if(oSrc.options.item(i).innerText==name && oSrc.options.item(i).value==value) {
                        oSrc.options.remove(i);
                        break;
                }
        }
}
function SelClear(des) {
        var oDes=MM_findObj(des);
        var i;
        if (oDes) {
                for (i=0;i<oDes.options.length;i++) {
                        oDes.options.remove(i);
                        i--;
                }
        }
}

//====================Trim serial function====================
function Trim(string)
{
        var ret = new String(string);
        var i=0;

while(ret.charAt(i) == " ")
                i++;

ret = ret.substring(i, ret.length);

i=ret.length;
        while(ret.charAt(i-1) == " ")
                i--;

ret = ret.substring(0, i);

return ret;
}
function LTrim(string)
{
        var ret = new String(string);
        var i=0;

while(ret.charAt(i) == " ")
                i++;

ret = ret.substring(i, ret.length);

return ret;
}
function RTrim(string)
{
        var ret = new String(string);
        var i=0;

i=ret.length;
        while(ret.charAt(i-1) == " ")
                i--;

ret = ret.substring(0, i);

return ret;
}
//本函数做用为校验某页面中的某文本框内所输入的值是否负合要求。现在可以完成的校验有:
//  是否为空      “R”
//  是否是一个合法的Email地址  “isEmail”
//  是否是一个日期型数据   “isDate”
//  是否是一个数值型数据   “isNum”
//  是否是在一个在指定范围内的数值型数据 “inRangeXX:YY” ;XX为最小值,YY为最大值
//
//本函数一次可完成多个字段的校验,使用方法如下:
//本函数参数为三个一组,每个参数组的第一个参数为要检验字段的名称,第二个参数保留,传一个空值即可,
//第三个参数为该字段的数据类型,请参考上面所述的参数值使用,如某字段要求必需输入,则第三个参数为“R”,
//如必需为一Email地址,则第三个参数为“isEmail”,如该字段必需输入,且必需为一Email地址,则第三个参数为“RisEmail”。
//下面举一例子说明:
//
// 假设在页面内有三个文本框,三个文本框的名称分别为:"Name","Email","Age","Money",四个字段的要求分别为:
// Name:   不能为空,但可以输入任何字符。
// Email:   不能为空,且必须输入一个Email地址。
// Age:   不能为空,且必须为数字,且范围必需在18-40之间。
// Money:   不能为空,且必须为数字,但不指定范围。
// 现在要对这三个字段进行检查,那么函数为:
//  X_validateForm("Name","","R","Email","","RisEmail","Age","","RinRange18:40","Money","","RisNum");
// 如果要配合Form进行检验,可以写在Form的Onsubmit事件中或提交按钮的Onclick事件中;,完整语句如下:
// οnsubmit='return X_validateForm("Name","","R","Email","","RisEmail","Age","","RinRange18:40","Money","","RisNum");'
//
//此函数适用范围:
//此函数只能用来检查文本框控件内的值,且可以适应多文本框名称相同的情况,会对这些文本框都进行检查;
//如想检查列表框等其它控件内的值,可以使用本函数的另一版本,函数名为MM_validateForm(),用法基本一样,只是其不能检查
//多个文本框相同的情况,在这种情况下会提示出错。

function X_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=X_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; oval=MM_findObj(args[i]); msg=args[i+1];
 if (!oval) continue;
 if(oval.tagName) llength=1;
 else llength=oval.length;
    for(j=0;j<llength;j++) {
  if (llength==1) val=oval;
  else val=oval(j);
     if (val) { nm=val.name; if ((val=val.value)!="") {
    if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
   if (p<1 || p==(val.length-1)) errors+='- '+(msg==''?nm+' must contain an e-mail address./n':msg+'/n');
  } else if (test.indexOf('isDate')!=-1) {
     if (!checkDate(val)) errors+='- '+(msg==''?nm+' must contain a date.(like dd/mm/yyyy")/n':msg+'/n');
      }
      else if (test!='R') {
      if (isNaN(val)) errors+='- '+(msg==''?nm+' must contain a number./n':msg+'/n');
      if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
      min=test.substring(7,p); max=test.substring(p+1);
      if (parseFloat(val)<parseFloat(min) || parseFloat(max)<parseFloat(val)) errors+='- '+(msg==''?nm+' must contain a number between '+min+' and '+max+'./n':msg+'/n');
  }
  else if(val<0) errors+='- '+(msg==''?nm+' must contain a positive number./n':msg+'/n');
  } } else if (test.charAt(0) == 'R') errors += '- '+(msg==''?nm+' is required./n':msg+'/n'); }
 } 
  } if (errors) alert('The following error(s) occurred:/n'+errors);
  document.X_returnValue = (errors == '');
  return document.X_returnValue;
}
/*
检查及转换日期
*/
function checkDate(strDate) {
        strDate=Trim(strDate);
        if (strDate.length>10 || strDate.length < 6) return false;
        var j=0;
        for(i=0;i<strDate.length;i++)
                if(isNaN(parseInt(strDate.substring(i,i+1)))) j++;
        if(j!=2) return false;
        var separater="/";
        if(strDate.indexOf("-")!=-1) separater="-";
        if (strDate.lastIndexOf(separater)==strDate.indexOf(separater)) return false;
        var dd=strDate.substr(0,strDate.indexOf(separater));
        var mm=strDate.substring(strDate.indexOf(separater)+1,strDate.lastIndexOf(separater));
        var yy=strDate.substr(strDate.lastIndexOf(separater)+1);
        if (yy.length!=2 && yy.length!=4) return false;
        if (yy.length==2) {
                if (isNaN(parseInt(yy))) return false;
                if (parseInt(yy)<0) return false;
                if (parseInt(yy)>=50) yy="19"+yy;
                else yy="20"+yy;
        }
        if (!isdate(yy+"-"+mm+"-"+dd)) return false;
        return true;
}
/*
作者:何志强[hhzqq@21cn.com]
日期:2000-08-09
版本:1.0
功能:判断一个字符串是否为合法日期
*/

//日期格式:YYYY-MM-DD
function isdate(strDate){
   var strSeparator = "-"; //日期分隔符
   var strDateArray;
   var intYear;
   var intMonth;
   var intDay;
   var boolLeapYear;

strDateArray = strDate.split(strSeparator);

if(strDateArray.length!=3) return false;

intYear = parseInt(strDateArray[0],10);
   intMonth = parseInt(strDateArray[1],10);
   intDay = parseInt(strDateArray[2],10);

if(isNaN(intYear)||isNaN(intMonth)||isNaN(intDay)) return false;

if(intMonth>12||intMonth<1) return false;

if((intMonth==1||intMonth==3||intMonth==5||intMonth==7||intMonth==8||intMonth==10||intMonth==12)&&(intDay>31||intDay<1)) return false;

if((intMonth==4||intMonth==6||intMonth==9||intMonth==11)&&(intDay>30||intDay<1)) return false;

if(intMonth==2){
      if(intDay<1) return false;

boolLeapYear = false;
      if((intYear%100)==0){
         if((intYear%400)==0) boolLeapYear = true;
      }
      else{
         if((intYear%4)==0) boolLeapYear = true;
      }

if(boolLeapYear){
         if(intDay>29) return false;
      }
      else{
         if(intDay>28) return false;
      }
   }

return true;
}
function checkkey(){
        if(event.keyCode==13){
                switch(event.srcElement.tagName){
                        case "INPUT" :
                        {
                                if(event.srcElement.type!="button" && event.srcElement.type!="submit" && event.srcElement.type!="reset")
                                        event.keyCode=9;
                                break;
                        }
                        case "TEXTAREA" :
                        {
                                break;
                        }
                        case "SELECT" :
                                break;
                }
        }
}
//document.οnkeydοwn=checkkey;
//****End*****
//四舍五入的函数.
function FormatNumeric(numValue,n){
        if (isNaN(numValue)) //is not numeric
                return numValue;
        if (String(numValue).indexOf(".")==-1) //no decimal
                return numValue;
        if (String(numValue).substr(String(numValue).indexOf(".")+1).length<=n)
                return numValue;  // decimal less than n
        return String(numValue).substr(0,String(numValue).indexOf(".")+1+n);
}

// 检查值是否规范的email格式
function checkemail(a)
{ var i=a.length;
        var temp = a.indexOf('@');
        var tempd = a.indexOf('.');
        if (temp > 1) {
                if ((i-temp) > 3){

if ((i-tempd)>0){
                                        return true;
                                }

}
        }
        return false;
}

//</script>
      
define.js文件:
function position(name,value){
  this.name=name;
  this.value=value;
}
function city(name,value){
  this.name=name;
  this.value=value;
}
var _ptype = new Array(
  "计算机业(IT)类",
  "销售类",
  "市场营销/公关类",
  "客户服务类",
  "经营/管理类",
  "财务/审(统)计类",
  "公司文职类",
  "行政/人事类/后勤类",
  "工业/工厂类",
  "电子通讯/电气(器)类",
  "机械(电)/仪表类",
  "金融/保险/证券类",
  "房地产/建筑施工类",
  "广告(装潢、包装)设计类",
  "文体/教育/培训类",
  "卫生医疗/美容保健类",
  "化工/制药类",
  "能源动力类",
  "宾馆饭店/餐饮旅游类",
  "商店/零售服务类",
  "技工/普工类",
  "轻工类",
  "后勤保障类",
  "翻译类",
  "物流/贸易类",
  "咨询/顾问类",
  "法律专业人员类",
  "影视/摄影专业类",
  "报刊编辑/发行类",
  "公务员类",
  "科研人员类",
  "在校学生类",
  "其他类"
  );
//*
var _positions = new Array(
  new Array(
    new position("计算机业(IT)类-全部","100"),
    new position("网页设计师","101"),
    new position("电脑美术设计","102"),
    new position("网站策划","103"),
    new position("网站编辑","104"),
    new position("网络管理员","105"),
    new position("栏目/频道主编","106"),
    new position("系统管理员/网管","107"),
    new position("网站营运经理/主管","108"),
    new position("网络工程师","109"),
    new position("系统集成/技术支持","110"),
    new position("硬件工程师","111"),
    new position("技术支持经理","112"),
    new position("信息安全工程师","113"),
    new position("游戏开发人员","114"),
    new position("项目经理/主管","115"),
    new position("数据库开发与管理","116"),
    new position("系统分析员","117"),
    new position("系统维护员","118"),
    new position("系统工程师","119"),
    new position("软件工程师","120"),
    new position("测试工程师","121"),
    new position("INTERNET/WEB/电子商务","122"),
    new position("MRP/ERP/SAP实施工程师","123"),
    new position("客户服务人员","124"),
    new position("其它相关职位","125")
    ),
  new Array(
    new position("销售类-全部","200"),
    new position("销售总监","201"),
    new position("销售部经理","202"),
    new position("区域销售经理","203"),
    new position("销售主管","204"),
    new position("销售代表","205"),
    new position("销售助理","206"),
    new position("推(营)销员","207"),
    new position("销售工程师","208"),
    new position("商务经理/商务专员","209"),
    new position("渠道经理","210"),
    new position("渠道主管","211"),
    new position("分销经理","212"),
    new position("客户经理","213"),
    new position("医药代表","214"),
    new position("保险代理","215"),
    new position("售前/售后技术服务主管","216"),
    new position("其它相关职位","217")
    ),
  new Array(
    new position("市场营销/公关类-全部","300"),
    new position("市场/广告总监","301"),
    new position("市场/营销经理","302"),
    new position("市场助理/专员","303"),
    new position("市场部主管","304"),
    new position("市场调研/业务分析","305"),
    new position("市场/行销企划","306"),
    new position("产品/品牌企划","307"),
    new position("品牌经理","308"),
    new position("价格企划","309"),
    new position("广告策划/设计/文案","310"),
    new position("媒介经理","311"),
    new position("媒介人员","312"),
    new position("新闻媒介企划","313"),
    new position("市场推广/拓展/合作","314"),
    new position("促销/礼仪专员","315"),
    new position("公关经理","316"),
    new position("公关专员","317"),
    new position("市场分析/调研人员","318"),
    new position("其它相关职位","319")
    ),
  new Array(
    new position("客户服务类-全部","400"),
    new position("客户服务经理","401"),
    new position("客户数据库管理","402"),
    new position("客户关系管理","403"),
    new position("客户培训","404"),
    new position("客户咨询","405"),
    new position("热线咨询","406"),
    new position("客户服务","407"),
    new position("售前/售后支持","408"),
    new position("投诉处理","409"),
    new position("投诉监控","410"),
    new position("客户主任","411"),
    new position("其它相关职位","412")
    ),
  new Array(
    new position("经营/管理类-全部","500"),
    new position("(正/副)总裁/总经理/CEO","501"),
    new position("副总裁/副总经理","502"),
    new position("总监","504"),
    new position("合伙人","505"),
    new position("技术总监CTO","506"),
    new position("艺术/设计总监","517"),
    new position("信息主管/CIO","510"),
    new position("总经理助理","513"),
    new position("其它相关职位","518")
    ),
  new Array(
    new position("财务/审(统)计类-全部","600"),
    new position("财务总监","601"),
    new position("财务主管/经理","602"),
    new position("总帐主管","603"),
    new position("会计主管","604"),
    new position("会计","605"),
    new position("会计助理","606"),
    new position("出纳","607"),
    new position("注册会计师","608"),
    new position("注册审计师","609"),
    new position("注册分析师","610"),
    new position("精算师","611"),
    new position("审计经理/主管","612"),
    new position("审计","613"),
    new position("统计","614"),
    new position("财务分析","615"),
    new position("财务分析经理/主管","616"),
    new position("成本经理/成本主管","617"),
    new position("成本分析/核算","618"),
    new position("成本管理员","619"),
    new position("帐目(进出口)管理","620"),
    new position("税务经理/税务主管","621"),
    new position("税务专员","622"),
    new position("证券经纪人","623"),
    new position("投资顾问","624"),
    new position("注册分析师","625"),
    new position("投资/基金项目经理","626"),
    new position("融资经理/融资主管","627"),
    new position("融资专员","628"),
    new position("行长/副行长","629"),
    new position("风险控制","630"),
    new position("进出口/信用证结算","631"),
    new position("清算人员","632"),
    new position("外汇主管","633"),
    new position("信贷/信用调查/分析人员","634"),
    new position("银行柜台出纳","635"),
    new position("统计员","636"),
    new position("其它相关职位","637")
    ),
  new Array(
    new position("公司文职类-全部","700"),
    new position("图书情报/档案管理","701"),
    new position("文案策划/资料编写","702"),
    new position("高级文员","703"),
    new position("高级秘书","704"),
    new position("电脑操作员/打字员","705"),
    new position("前台文员接待","706"),
    new position("话务员","707"),
    new position("文员","708"),
    new position("其它相关职位","709")
    ),
  new Array(
    new position("行政/人事类/后勤类-全部","800"),
    new position("行政/人力资源总监","801"),
    new position("人事经理","802"),
    new position("行政经理","803"),
    new position("人事助理","804"),
    new position("行政助理","805"),
    new position("人事文员","806"),
    new position("行政文员","807"),
    new position("总务","808"),
    new position("招聘经理/主管","809"),
    new position("薪资福利经理/主管/专员","810"),
    new position("绩效考核经理/主管/专员","811"),
    new position("员工培训经理/主管","812"),
    new position("招聘经理/主任","813"),
    new position("招聘专员","814"),
    new position("培训经理/主管","815"),
    new position("培训专员/助理","816"),
    new position("经理助理/秘书","817"),
    new position("前台接待/总机","818"),
    new position("后勤","819"),
    new position("资料管理员","820"),
    new position("电脑操作员/打字员","821"),
    new position("其它相关职位","822")
    ),
  new Array(
    new position("工业/工厂类-全部","900"),
    new position("工厂经理/厂长","901"),
    new position("总工程师/副总工程师","902"),
    new position("项目工程师","903"),
    new position("营运经理","904"),
    new position("营运主管","905"),
    new position("产品开发","906"),
    new position("生产经理","907"),
    new position("车间主任","908"),
    new position("生管主管/督导","909"),
    new position("生管员","910"),
    new position("PE工程师","912"),
    new position("IE工程师","913"),
    new position("工艺工程师","914"),
    new position("机械工程师","915"),
    new position("机电工程师","916"),
    new position("维修工程师","917"),
    new position("组长/拉长","918"),
    new position("工程经理/主管","919"),
    new position("工程设备工程师","920"),
    new position("品管经理/主管","921"),
    new position("品质工程师","922"),
    new position("品管员","923"),
    new position("专员","924"),
    new position("物控经理/主管","925"),
    new position("物控员","926"),
    new position("仓库管理员","927"),
    new position("计划员/调度员","928"),
    new position("设备经理/主管","929"),
    new position("化验/检验员","930"),
    new position("安全主任","931"),
    new position("质量经理","932"),
    new position("质量检验员/测试员","933"),
    new position("跟单员","934"),
    new position("统计员","935"),
    new position("采购管理","936"),
    new position("SMT技术员","937"),
    new position("ME工程师","938"),
    new position("制造课长","939"),
    new position("RD经理","940"),
    new position("认证工程师","941"),
    new position("安全/健康/环境经理/主管","942"),
    new position("安全/健康/环境工程师","943"),
    new position("工程绘图员","944"),
    new position("机械制图员","945"),
    new position("化验员","946"),
    new position("技工","947"),
    new position("电工","948"),
    new position("服装打样/制版","949"),
    new position("其它相关职位","950")
    ),
  new Array(
    new position("电子通讯/电气(器)类-全部","1000"),
    new position("电气/电子工程师","1010"),
    new position("电器工程师","1030"),
    new position("电力工程师","1040"),
    new position("电信工程师/通讯工程师","1050"),
    new position("变压器/磁电工程师","1060"),
    new position("电声工程师","1070"),
    new position("数码产品开发工程师","1080"),
    new position("单片机/DSP/底层软件开发","1090"),
    new position("电路(布线)设计","1100"),
    new position("智能大厦/综合布线/弱电","1110"),
    new position("光源与照明工程","1120"),
    new position("灯饰研发工程师","1130"),
    new position("电气维修技术员","1140"),
    new position("自动控制技术员","1150"),
    new position("无线电技术员","1160"),
    new position("半导体技术员","1170"),
    new position("家用电器技术员","1180"),
    new position("小家电技术员","1190"),
    new position("测试工程师","1200"),
    new position("其它相关职位","1210")
    ),
  new Array(
    new position("机械(电)/仪表类-全部","2000"),
    new position("机械工程师","915"),
    new position("机械工艺师","2030"),
    new position("模具工程师","2040"),
    new position("刀具工程师","2050"),
    new position("CNC工程师","2060"),
    new position("结构设计师","2070"),
    new position("机电一体化工程师","2080"),
    new position("铸造/锻造技术员","2090"),
    new position("注塑成型技术员","2100"),
    new position("气动/液压技术员","2110"),
    new position("机械制图员","2120"),
    new position("精密机械/仪器仪表技术员","2130"),
    new position("设备修理员","2140"),
    new position("汽车/摩托车工程师","2150"),
    new position("五金矿产/金属制品人员","2160"),
    new position("锅炉/压力容器技术员","2170"),
    new position("纺织机械技术员","2180"),
    new position("船舶机械技术员","2190"),
    new position("食品机械技术员","2200"),
    new position("焊接机械技术员","2210"),
    new position("其它相关职位","2220")
    ),
  new Array(
    new position("金融/保险/证券类-全部","3000"),
    new position("证券期货员","3010"),
    new position("银行信贷员","3020"),
    new position("金融投资分析员","3030"),
    new position("融资经理/主管","3040"),
    new position("出纳员/银行专员","3050"),
    new position("预结算专员","3060"),
    new position("税务专员","3070"),
    new position("评估师","3080"),
    new position("炒股操盘手","3090"),
    new position("保险业务/保险经纪人/保险代理人","3100"),
    new position("其它相关职位","3110")
    ),
  new Array(
    new position("房地产/建筑施工类-全部","4000"),
    new position("房地产开发/策划","4010"),
    new position("房地产评估员","4020"),
    new position("房地产中介/交易员","4030"),
    new position("物业管理员","4040"),
    new position("建筑(结构)工程师","4050"),
    new position("注册建筑师","4060"),
    new position("建筑制图","4070"),
    new position("工程监理","4080"),
    new position("管道(水、电)","4090"),
    new position("制冷暖通","4100"),
    new position("给排水/供水(电)工程","4110"),
    new position("工民建","4120"),
    new position("施工员","4130"),
    new position("工程预决算/施工","4140"),
    new position("路桥技术/隧道工程","4150"),
    new position("基建/岩土工程","4160"),
    new position("港口与航道工程","4170"),
    new position("城市规划与设计","4180"),
    new position("园艺工程/园林技术","4190"),
    new position("其它相关职位","4200")
    ),
  new Array(
    new position("广告(装潢、包装)设计类-全部","5000"),
    new position("平面设计师","5010"),
    new position("三维动画设计师","5020"),
    new position("多媒体设计与制作员","5030"),
    new position("产品包装设计员","5040"),
    new position("室内(外)装修/装潢设计","5050"),
    new position("工艺品设计","5060"),
    new position("工业产品设计","5070"),
    new position("纺织/服饰(装)设计","5080"),
    new position("形象设计","5090"),
    new position("玩具设计","5100"),
    new position("珠宝设计","5110"),
    new position("文案/媒体策划","5120"),
    new position("广告设计/创意策划","5130"),
    new position("其它相关职位","5140")
    ),
  new Array(
    new position("文体/教育/培训类-全部","6000"),
    new position("新闻出版","6010"),
    new position("编辑/作家/撰稿人","6020"),
    new position("记者","6030"),
    new position("校对/录入","6040"),
    new position("排版设计","6050"),
    new position("广播电视(影)","6060"),
    new position("文化艺术","6070"),
    new position("高等教育讲师","6080"),
    new position("中级教育教师","6090"),
    new position("小学/幼儿教育教师","6100"),
    new position("竞技/体育教师","6110"),
    new position("教学/教务管理人员","6120"),
    new position("助教","6130"),
    new position("职业教育/培训","6140"),
    new position("家教","6150"),
    new position("其它相关职位","6160")
    ),
  new Array(
    new position("卫生医疗/美容保健类-全部","7000"),
    new position("医生/医师(中、西医)","7010"),
    new position("医药代表","7020"),
    new position("医学管理人员","7030"),
    new position("医药技术人员","7040"),
    new position("牙科医生","7050"),
    new position("心理医生","7060"),
    new position("外科医生","7070"),
    new position("妇产科医生","7080"),
    new position("预防医生","7090"),
    new position("护士/护理","7100"),
    new position("保健/健美","7110"),
    new position("美容/美发","7120"),
    new position("药剂/中药/西药/药检","7130"),
    new position("针灸推拿","7140"),
    new position("临床医学","7150"),
    new position("妇幼保健","7160"),
    new position("卫生防疫","7170"),
    new position("麻醉师","7180"),
    new position("医药检验","7200"),
    new position("兽医","7210"),
    new position("其它相关职位","7220")
    ),
  new Array(
    new position("化工/制药类-全部","8000"),
    new position("日用化工","8010"),
    new position("生物化工/生物制药","8020"),
    new position("造纸/废品处理","8030"),
    new position("化学药剂/药品","8040"),
    new position("玻璃/硅酸盐工业","8050"),
    new position("农药、化肥","8060"),
    new position("无机化工","8070"),
    new position("有机化工","8080"),
    new position("精细化工","8090"),
    new position("分析化工","8100"),
    new position("高分子化工/化纤/新材料","8110"),
    new position("电镀化工","8120"),
    new position("其它相关职位","8130")
    ),
  new Array(
    new position("能源动力类-全部","9000"),
    new position("水利、水电","9010"),
    new position("核电、火电","9020"),
    new position("电厂、电力","9030"),
    new position("制冷、暖通","9040"),
    new position("空调、锅炉","9050"),
    new position("石油/天燃气/储运","9060"),
    new position("城市燃气","9070"),
    new position("其它相关职位","9080")
    ),
  new Array(
    new position("宾馆饭店/餐饮旅游类-全部","10000"),
    new position("酒店总经理","10010"),
    new position("大堂经理/副理","10020"),
    new position("楼面经理/主任","10030"),
    new position("服务员/侍者/门童","10040"),
    new position("高级厨师/调酒师","10050"),
    new position("导游","10060"),
    new position("前台接待/礼仪/接线生","10070"),
    new position("其它相关职位","10080")
    ),
  new Array(
    new position("商店/零售服务类-全部","10100"),
    new position("店长","10101"),
    new position("营销主管","10102"),
    new position("营业员/服务员/店员","10103"),
    new position("理货员","10104"),
    new position("导购员","10105"),
    new position("收银员","10106"),
    new position("其它相关职位","10107")
    ),
  new Array(
    new position("技工/普工类-全部","10200"),
    new position("车、铣、刨、磨","10201"),
    new position("钳、钣、铆、冲、焊、铸","10202"),
    new position("裁、剪、车、缝、熨、烫","10203"),
    new position("水工/木工/油漆工","10204"),
    new position("电工/锅炉工","10205"),
    new position("普通工人","10206"),
    new position("其它相关职位","10207")
    ),
  new Array(
    new position("轻工类-全部","10300"),
    new position("服装纺织","10301"),
    new position("印刷/染整技术","10302"),
    new position("纸浆造纸工艺","10303"),
    new position("制鞋/制衣/制革/手袋","10304"),
    new position("食品工程/糖酒饮料/粮油副食","10305"),
    new position("陶瓷技术","10306"),
    new position("金银首饰加工","10307"),
    new position("其它相关职位","10308")
    ),
  new Array(
    new position("后勤保障类-全部","10400"),
    new position("保安/司机/搬运","10401"),
    new position("寻呼/声讯服务","10402"),
    new position("社区服务","10403"),
    new position("清洁工/后勤","10404"),
    new position("食堂厨师","10405"),
    new position("其它相关职位","10406")
    ),
  new Array(
    new position("翻译类-全部","10600"),
    new position("英语翻译","10601"),
    new position("日语翻译","10602"),
    new position("法语翻译","10603"),
    new position("德语翻译","10604"),
    new position("俄语翻译","10605"),
    new position("朝鲜语翻译","10606"),
    new position("西班牙语翻译","10607"),
    new position("其它相关职位","10608")
    ),
  new Array(
    new position("物流/贸易类-全部","10700"),
    new position("物流经理","10701"),
    new position("物流主管","10702"),
    new position("采购经理","10703"),
    new position("采购主管","10704"),
    new position("仓库经理/主管","10705"),
    new position("仓库管理员","10706"),
    new position("运输经理/主管","10707"),
    new position("外贸/贸易经理/主管","10708"),
    new position("单证员","10709"),
    new position("快递员","10710"),
    new position("物流操作员","10711"),
    new position("船务人员","10712"),
    new position("外销员","10713"),
    new position("国际业务","10714"),
    new position("报关员","10715"),
    new position("其它相关职位","10716")
    ),
  new Array(
    new position("咨询/顾问类-全部","10800"),
    new position("企业策划/顾问","10801"),
    new position("企业管理/企管顾问","10802"),
    new position("涉外咨询师","10803"),
    new position("高级猎头顾问","10804"),
    new position("咨询总监","10805"),
    new position("咨询经理","10806"),
    new position("咨询员","10807"),
    new position("信息中介","10808"),
    new position("专业顾问","10809"),
    new position("其它相关职位","10810")
    ),
  new Array(
    new position("法律专业人员类-全部","10900"),
    new position("律师","10901"),
    new position("法律顾问","10902"),
    new position("法务人员","10903"),
    new position("律师助理","10904"),
    new position("书记员","10905"),
    new position("其它相关职位","10906")
    ),
  new Array(
    new position("影视/摄影专业类-全部","11000"),
    new position("影视策划/制作人员","11010"),
    new position("影音器材管理","11020"),
    new position("演员","11030"),
    new position("模特儿","11040"),
    new position("摄影师","11050"),
    new position("音效师","11060"),
    new position("节目主持人","11070"),
    new position("其它相关职位","11080")
    ),
  new Array(
    new position("报刊编辑/发行类-全部","12000"),
    new position("总编","12010"),
    new position("副总编","12020"),
    new position("编辑主任","12030"),
    new position("编辑","12040"),
    new position("美术编辑","12050"),
    new position("记者","12060"),
    new position("发行主管","12070"),
    new position("发行助理","12080"),
    new position("其它相关职位","12090")
    ),
  new Array(
    new position("公务员类-全部","13000"),
    new position("公务员","13010"),
    new position("科长","13020")
    ),
  new Array(
    new position("科研人员类-全部","14000"),
    new position("高级研究员","14010"),
    new position("研究员","14020"),
    new position("助理研究员","14030")
    ),
  new Array(
    new position("在校学生类-全部","15000"),
    new position("在校学生","15010"),
    new position("应届毕业生","15020"),
    new position("实习生","15030"),
    new position("其他","15040"),
    new position("培训生","15050")
    ),
  new Array(
    new position("其他类-全部","10500"),
    new position("交通运输","10501"),
    new position("声光技术","10502"),
    new position("生物技术","10503"),
    new position("测绘技术","10504"),
    new position("激光技术","10505"),
    new position("地质勘探","10506"),
    new position("矿产冶金","10507"),
    new position("环境工程","10508"),
    new position("市政建设/城市规划","10509"),
    new position("农、林、牧、渔、其他","10510"),
    new position("其它相关职位","10511")
    )
  );
var _province_cn =
 new Array(
  "北京",
  "天津",
  "上海",
  "重庆",
  "广东省",
  "江苏省",
  "浙江省",
  "福建省",
  "湖南省",
  "湖北省",
  "山东省",
  "辽宁省",
  "吉林省",
  "云南省",
  "四川省",
  "安徽省",
  "江西省",
  "黑龙江省",
  "河北省",
  "陕西省",
  "海南省",
  "河南省",
  "山西省",
  "内蒙古自治区",
  "广西壮族自治区",
  "贵州省",
  "宁夏回族自治区",
  "青海省",
  "新疆维吾尔自治区",
  "西藏自治区",
  "甘肃省",
  "台湾省",
  "香港特别行政区",
  "澳门特别行政区",
  "国外"

);
var _city_cn = new Array(
    new Array(
      new city('北京','100')
    ),
    new Array(
      new city('天津','200')
    ),
    new Array(
      new city('上海','300')
    ),
    new Array(
      new city('重庆','400')
    ),
    new Array(
      new city('广东省(全部地区)','500'),
      new city('广州','501'),
      new city('深圳','502'),
      new city('东莞','503'),
      new city('中山','504'),
      new city('佛山','505'),
      new city('珠海','506'),
      new city('惠州','507'),
      new city('汕头','508'),
      new city('湛江','509'),
      new city('潮州','510'),
      new city('潮阳','511'),
      new city('江门','512'),
      new city('汕尾','513'),
      new city('茂名','514'),
      new city('阳江','515'),
      new city('肇庆','516'),
      new city('梅州','517'),
      new city('云浮','518'),
      new city('清远','519'),
      new city('韶关','520'),
      new city('河源','521'),
      new city('揭阳','522'),
      new city('其他','523')
    ),
    new Array(
      new city('江苏省(全部地区)','600'),
      new city('南京','601'),
      new city('苏州','602'),
      new city('无锡','603'),
      new city('扬州','604'),
      new city('常州 ','605'),
      new city('镇江','606'),
      new city('南通','607'),
      new city('江阴','608'),
      new city('连云港','609'),
      new city('徐州','610'),
      new city('淮阴','611'),
      new city('宿迁','612'),
      new city('东台','613'),
      new city('泰州','614'),
      new city('仪征','615'),
      new city('丹阳','616'),
      new city('宜兴','617'),
      new city('常熟','618'),
      new city('淮安','619'),
      new city('盐城','620'),
      new city('兴化','621'),
      new city('其他','622')
    ),
    new Array(
      new city('浙江省(全部地区)','700'),
      new city('杭州','701'),
      new city('宁波','702'),
      new city('温州','703'),
      new city('金华','704'),
      new city('义乌','705'),
      new city('绍兴','706'),
      new city('湖州','707'),
      new city('余姚','708'),
      new city('台州','709'),
      new city('萧山','710'),
      new city('临安','711'),
      new city('诸暨','712'),
      new city('嵊泗','713'),
      new city('兰溪','714'),
      new city('嘉兴','715'),
      new city('海宁','716'),
      new city('桐乡','717'),
      new city('衢州','718'),
      new city('上虞','719'),
      new city('嵊州','720'),
      new city('慈溪','721'),
      new city('丽水','722'),
      new city('瓯海','723'),
      new city('黄岩','724'),
      new city('椒江','725'),
      new city('其他','726')
    ),
    new Array(
      new city('福建省(全部地区)','800'),
      new city('福州','801'),
      new city('厦门','802'),
      new city('泉州','803'),
      new city('漳州','804'),
      new city('石狮','805'),
      new city('三明','806'),
      new city('南平','807'),
      new city('莆田','808'),
      new city('永安','809'),
      new city('邵武','810'),
      new city('龙岩','811'),
      new city('其他','812')
    ),
    new Array(
      new city('湖南省(全部地区)','900'),
      new city('长沙 ','901'),
      new city('湘潭','902'),
      new city('岳阳 ','903'),
      new city('株洲','904'),
      new city('张家界','905'),
      new city('衡阳','906'),
      new city('郴州','907'),
      new city('湘乡','908'),
      new city('汨罗','909'),
      new city('常德','910'),
      new city('津市','911'),
      new city('吉首','912'),
      new city('娄底','913'),
      new city('涟源','914'),
      new city('冷水江','915'),
      new city('怀化','916'),
      new city('洪江','917'),
      new city('益阳 ','918'),
      new city('耒阳','919'),
      new city('邵阳','920'),
      new city('永州','921'),
      new city('冷水滩','922'),
      new city('其他','923')
    ),
    new Array(
      new city('湖北省(全部地区)','1000'),
      new city('武汉','1001'),
      new city('宜昌','1002'),
      new city('孝感','1003'),
      new city('荆州','1004'),
      new city('襄樊','1005'),
      new city('老河口','1006'),
      new city('枝城','1007'),
      new city('枣阳','1008'),
      new city('荆门','1009'),
      new city('宜城','1010'),
      new city('黄石','1011'),
      new city('鄂州','1012'),
      new city('黄冈','1013'),
      new city('咸宁','1014'),
      new city('武穴','1015'),
      new city('蒲昕','1016'),
      new city('麻城','1017'),
      new city('十堰','1018'),
      new city('恩施','1019'),
      new city('丹江口','1020'),
      new city('利川','1021'),
      new city('天门','1022'),
      new city('汉川','1023'),
      new city('洪湖','1024'),
      new city('应城','1025'),
      new city('潜江','1026'),
      new city('安陆','1027'),
      new city('仙桃','1028'),
      new city('随州','1029'),
      new city('石首','1030'),
      new city('其他','1031')
    ),
    new Array(
      new city('山东省(全部地区)','1200'),
      new city('济南','1201'),
      new city('青岛','1202'),
      new city('烟台','1203'),
      new city('淄博','1204'),
      new city('潍坊 ','1205'),
      new city('临沂','1206'),
      new city('莱芜','1207'),
      new city('济宁','1208'),
      new city('荷泽','1209'),
      new city('日照','1210'),
      new city('藤州','1211'),
      new city('聊城','1212'),
      new city('德州','1213'),
      new city('滨州','1214'),
      new city('临清','1215'),
      new city('青州 ','1216'),
      new city('威海','1217'),
      new city('泰安','1218'),
      new city('新泰','1219'),
      new city('曲阜','1220'),
      new city('东营','1221'),
      new city('诸城','1222'),
      new city('枣庄','1223'),
      new city('其他','1224')
    ),
    new Array(
      new city('辽宁省(全部地区)','1300'),
      new city('沈阳','1301'),
      new city('铁岭','1302'),
      new city('抚顺','1303'),
      new city('大连','1304'),
      new city('本溪','1305'),
      new city('营口','1306'),
      new city('锦州','1307'),
      new city('兴城','1308'),
      new city('北票','1309'),
      new city('盘锦','1310'),
      new city('辽阳','1311'),
      new city('铁法 ','1312'),
      new city('鞍山','1313'),
      new city('瓦房店','1314'),
      new city('丹东','1315'),
      new city('锦西','1316'),
      new city('朝阳','1317'),
      new city('阜新','1318'),
      new city('海城','1319'),
      new city('其他','1320')
    ),
    new Array(
      new city('吉林省(全部地区)','1400'),
      new city('长春','1401'),
      new city('吉林','1402'),
      new city('通化','1403'),
      new city('扶余','1404'),
      new city('桦甸','1405'),
      new city('延吉','1406'),
      new city('图门','1407'),
      new city('龙井','1408'),
      new city('敦化','1409'),
      new city('集安','1410'),
      new city('浑江','1411'),
      new city('梅河口','1412'),
      new city('四平','1413'),
      new city('公主岭','1414'),
      new city('辽源','1415'),
      new city('白城','1416'),
      new city('洮南','1417'),
      new city('九台','1418'),
      new city('其他','1419')
    ),
    new Array(
      new city('云南省(全部地区)','1500'),
      new city('昆明','1501'),
      new city('曲靖','1502'),
      new city('大理','1503'),
      new city('玉溪','1504'),
      new city('丽江','1505'),
      new city('楚雄','1506'),
      new city('开远','1507'),
      new city('迪庆','1508'),
      new city('东川','1509'),
      new city('照通','1510'),
      new city('个旧','1511'),
      new city('保山','1512'),
      new city('文山','1513'),
      new city('其他','1514')
    ),
    new Array(
      new city('四川省(全部地区)','1600'),
      new city('成都','1601'),
      new city('宜宾','1602'),
      new city('泸州','1603'),
      new city('内江','1604'),
      new city('攀枝花','1605'),
      new city('西昌','1606'),
      new city('德阳','1607'),
      new city('雅安','1608'),
      new city('遂宁','1609'),
      new city('南充','1610'),
      new city('绵阳','1611'),
      new city('广元 ','1612'),
      new city('马尔康','1613'),
      new city('达县','1614'),
      new city('华鉴','1615'),
      new city('自贡','1616'),
      new city('乐山','1617'),
      new city('其他','1618')
    ),
    new Array(
      new city('安徽省(全部地区)','1700'),
      new city('合肥','1701'),
      new city('芜湖','1702'),
      new city('马鞍山','1703'),
      new city('蚌埠','1704'),
      new city('铜陵','1705'),
      new city('淮北','1706'),
      new city('淮南','1707'),
      new city('亳州','1708'),
      new city('巢湖','1709'),
      new city('黄山','1710'),
      new city('歙县','1711'),
      new city('宿州','1712'),
      new city('阜阳','1713'),
      new city('六安','1714'),
      new city('滁州','1715'),
      new city('宣州','1716'),
      new city('黄山','1717'),
      new city('安庆','1718'),
      new city('其他','1719')
    ),
    new Array(
      new city('江西省(全部地区)','1800'),
      new city('南昌','1801'),
      new city('德镇','1802'),
      new city('九江','1803'),
      new city('鹰潭','1804'),
      new city('宜春','1805'),
      new city('新余','1806'),
      new city('萍乡','1807'),
      new city('赣州','1808'),
      new city('吉安','1809'),
      new city('井冈山','1810'),
      new city('抚州','1811'),
      new city('临川','1812'),
      new city('上饶','1813'),
      new city('其他','1814')
    ),
    new Array(
      new city('黑龙江省(全部地区)','1900'),
      new city('哈尔滨','1901'),
      new city('佳木斯','1902'),
      new city('牡丹江','1903'),
      new city('大庆','1904'),
      new city('齐齐哈尔','1905'),
      new city('阿城','1906'),
      new city('肇东','1907'),
      new city('绥化','1908'),
      new city('伊春','1909'),
      new city('鹤岗','1910'),
      new city('七台河','1911'),
      new city('双鸭','1912'),
      new city('同江','1913'),
      new city('绥汾河','1914'),
      new city('鸡西','1915'),
      new city('北安','1916'),
      new city('黑河','1917'),
      new city('五大连池','1918'),
      new city('其他','1919')
    ),
    new Array(
      new city('河北省(全部地区)','2000'),
      new city('石家庄','2001'),
      new city('邯郸','2002'),
      new city('保定','2003'),
      new city('张家口','2004'),
      new city('秦皇岛','2005'),
      new city('辛集','2006'),
      new city('邢台','2007'),
      new city('泊头','2008'),
      new city('唐山','2009'),
      new city('北戴河','2010'),
      new city('廊坊','2011'),
      new city('定州','2012'),
      new city('南宫','2013'),
      new city('衡水','2014'),
      new city('沙河','2015'),
      new city('沧州','2016'),
      new city('任丘','2017'),
      new city('承德','2018'),
      new city('涿州','2019'),
      new city('其他','2020')
    ),
    new Array(
      new city('陕西省(全部地区)','2100'),
      new city('西安','2101'),
      new city('咸阳','2102'),
      new city('宝鸡','2103'),
      new city('铜川','2104'),
      new city('渭南','2105'),
      new city('延安','2106'),
      new city('汉中 ','2107'),
      new city('韩城','2108'),
      new city('其他','2109')
    ),
    new Array(
      new city('海南省(全部地区)','2200'),
      new city('海口','2201'),
      new city('三亚','2202'),
      new city('琼海','2203'),
      new city('通什','2204'),
      new city('其他','2205')
    ),
    new Array(
      new city('河南省(全部地区)','2300'),
      new city('郑州','2301'),
      new city('洛阳','2302'),
      new city('开封','2303'),
      new city('鹤壁','2304'),
      new city('焦作','2305'),
      new city('许昌','2306'),
      new city('驻马店','2307'),
      new city('周口','2308'),
      new city('新乡','2309'),
      new city('安阳','2310'),
      new city('濮阳','2311'),
      new city('漯河','2312'),
      new city('信阳','2313'),
      new city('平顶山','2314'),
      new city('三门峡','2315'),
      new city('南阳','2316'),
      new city('商丘','2317'),
      new city('义马 ','2318'),
      new city('其他','2319')
    ),
    new Array(
      new city('山西省(全部地区)','2400'),
      new city('太原','2401'),
      new city('大同','2402'),
      new city('忻州','2403'),
      new city('临汾','2404'),
      new city('运城','2405'),
      new city('长治','2406'),
      new city('榆次','2407'),
      new city('侯马','2408'),
      new city('阳泉','2409'),
      new city('晋城','2410'),
      new city('其他','2411')
    ),
    new Array(
      new city('内蒙古自治区(全部地区)','2500'),
      new city('呼和浩特','2501'),
      new city('赤峰','2502'),
      new city('包头','2503'),
      new city('二连浩特','2504'),
      new city('临河','2505'),
      new city('东胜','2506'),
      new city('洲里','2507'),
      new city('乌兰浩特','2508'),
      new city('霍林郭勒','2509'),
      new city('集宁','2510'),
      new city('乌海','2511'),
      new city('海拉尔','2512'),
      new city('牙克石','2513'),
      new city('锡林浩特','2514'),
      new city('通辽','2515'),
      new city('扎兰屯','2516'),
      new city('其他','2517')
    ),
    new Array(
      new city('广西壮族自治区(全部地区)','2600'),
      new city('南宁','2601'),
      new city('桂林 ','2602'),
      new city('北海','2603'),
      new city('柳州','2604'),
      new city('玉林','2605'),
      new city('百色','2606'),
      new city('河池','2607'),
      new city('凭祥','2608'),
      new city('钦州','2609'),
      new city('梧州','2610'),
      new city('合山','2611'),
      new city('其他','2612')
    ),
    new Array(
      new city('贵州省(全部地区)','2700'),
      new city('贵阳','2701'),
      new city('遵义','2702'),
      new city('铜仁','2703'),
      new city('都匀','2704'),
      new city('兴义 ','2705'),
      new city('赤水','2706'),
      new city('六盘水','2707'),
      new city('凯里','2708'),
      new city('安顺','2709'),
      new city('其他','2710')
    ),
    new Array(
      new city('宁夏回族自治区(全部地区)','2800'),
      new city('银川','2801'),
      new city('青铜峡','2802'),
      new city('吴忠','2803'),
      new city('石嘴山','2804'),
      new city('其他','2805')
    ),
    new Array(
      new city('青海省(全部地区)','2900'),
      new city('西宁','2901'),
      new city('格尔木','2902'),
      new city('共和','2903'),
      new city('德令哈','2904'),
      new city('其他','2905')
    ),
    new Array(
      new city('新疆维吾尔自治区(全部地区)','3000'),
      new city('乌鲁木齐','3001'),
      new city('石河子','3002'),
      new city('拉玛依','3003'),
      new city('博乐','3004'),
      new city('塔城','3005'),
      new city('阿勒泰','3006'),
      new city('哈密','3007'),
      new city('阿克苏','3008'),
      new city('阿图什','3009'),
      new city('昌吉','3010'),
      new city('奎屯','3011'),
      new city('伊宁','3012'),
      new city('吐鲁番','3013'),
      new city('库尔勒','3014'),
      new city('喀什','3015'),
      new city('和田','3016'),
      new city('其他','3017')
    ),
    new Array(
      new city('西藏自治区(全部地区)','3100'),
      new city('拉萨','3101'),
      new city('日喀则','3102'),
      new city('其他','3103')
    ),
    new Array(
      new city('甘肃省(全部地区)','3200'),
      new city('兰州','3201'),
      new city('酒泉','3202'),
      new city('临夏','3203'),
      new city('张掖','3204'),
      new city('峪关','3205'),
      new city('金昌','3206'),
      new city('平凉','3207'),
      new city('白银','3208'),
      new city('武威','3209'),
      new city('玉门','3210'),
      new city('天水','3211'),
      new city('西峰','3212'),
      new city('其他','3213')
    ),
    new Array(
      new city('台湾省(全部地区)','3300'),
      new city('台北','3301'),
      new city('台中','3302'),
      new city('基隆','3303'),
      new city('台南','3304'),
      new city('其他','3305')
    ),
    new Array(
      new city('香港特别行政区','1100')
    ),
    new Array(
      new city('澳门特别行政区','3400')
    ),
    new Array(
      new city('国外','3500')
    )

);
//*/
//*
function getPTypeOptions(selected){
  options = "";
  if(!selected) selected=0;
  var i;
  for(i=0;i<_ptype.length;i++){
    options+="<option value="+i+(selected==i?" selected":"")+">"+_ptype[i]+"</option>";
  }
  return options;
}
function getPositionOptions(type,selected,includeall){
  if(!type) type=0;
  options = "";
  position = _positions[type];
  if(!position) return;
  var i=0;
  if(!includeall && position.length>1) i=1;
  for(;i<position.length;i++){
    options+="<option value="+position[i].value+(selected==position[i].value?" selected":"")+">"+position[i].name+"</option>";
  }
  return options;
}
function handlePTypeChangeEvent(src,des,selected,includeall){
  if(!src.value) return;
  position = _positions[src.value];
  if(!position || !des) return;
  oOs = des.options;
  while(oOs.length>0){
    oOs.remove(0);
  }
  var i =0;
  if(!includeall && position.length>1) i = 1;
  for(;i<position.length;i++){
    var oOption = document.createElement("OPTION");
    oOption.text=position[i].name;
    oOption.value=position[i].value;
    if(selected) if(position[i].value==selected) oOption.selected=true;
    oOs.add(oOption);
  }
}
function getProvinceOptions(selected){
  options = "";
  if(!selected) selected=0;
  var i;
  for(i=0;i<_province_cn.length;i++){
    options+="<option value="+i+(selected==i?" selected":"")+">"+_province_cn[i]+"</option>";
  }
  return options;
}
function getCityOptions(province,selected,includeall){
  if(!province) province=0;
  options = "";
  city = _city_cn[province];
  if(!city) return;
  var i=0;
  if(!includeall && city.length>1) i=1;
  for(;i<city.length;i++){
    options+="<option value="+city[i].value+(selected==city[i].value?" selected":"")+">"+city[i].name+"</option>";
  }
  return options;
}
function handleProvinceChangeEvent(src,des,selected,includeall){
  if(!src.value) return;
  city = _city_cn[src.value];
  if(!city || !des) return;
  oOs = des.options;
  while(oOs.length>0){
    oOs.remove(0);
  }
  var i = 0;
  if(!includeall && city.length>1) i=1;
  for(;i<city.length;i++){
    var oOption = document.createElement("OPTION");
    oOption.text=city[i].name;
    oOption.value=city[i].value;
    if(selected) if(city[i].value==selected) oOption.selected=true;
    oOs.add(oOption);
  }
}

function checkCity(des,op){
  return checkPostType(des,op);
}
function checkPostType(des,op){
  if(!des || !op) return true;
  var flag = true;
  var ops = des.options;
  var i=0;
  for(i=0;i<ops.length;i++){
    if(ops.item(i).value==op.value) {
      flag=false;
    }
    if(ops.item(i).value%100==0 && ops.item(i).value==op.value-op.value%100){
      flag=false;
    }
    if(!flag){
      alert('你已经选择了 ['+op.innerText+'].');
      return flag;
    }
    if(op.value%100==0 && op.value==ops.item(i).value-ops.item(i).value%100){
      ops.remove(i);
      i--;
    }
  }
  return flag;
}
//*/

用js实现菜单的联动选择相关推荐

  1. JS实现的五级联动菜单效果完整实例

    https://www.jb51.net/article/106525.htm 本文实例讲述了JS实现的五级联动菜单效果.分享给大家供大家参考,具体如下: js实现多级联动的方法很多,这里给出一种5级 ...

  2. PHP随机配菜_PHP+JS三级菜单联动菜单实现方法

    本文实例讲述了PHP+JS三级菜单联动菜单实现方法.分享给大家供大家参考,具体如下: 智能递归菜单-读取数据库 TD { FONT-FAMILY: "Verdana", " ...

  3. 下拉式菜单在GridView编辑时联动选择

    父子下拉式菜单DropDownList在GridView编辑时联动选择. 本Demo从添加时的父子DropDownList联动选择,以及在GridView的编辑时联动功能实现. 文件格式:.wmv;大 ...

  4. lhgselect 联动选择下拉菜单 v1.0.0 (2011-06-13)

    lhgselect是一功能强大的简单迷你并且高效的联动选择组件,基于网络访问并且兼容IE 6.0+,Firefox 3.0+,Opera 9.6+,Chrome 1.0+,Safari 3.22+ 下 ...

  5. html 点击选择变色,JS实现菜单点击后变色

    为什么在href加入链接后菜单字体颜色会还原?如何用js实现菜单点击后变色(不要用target=_blank) a{color:#999;} 菜单A 菜单B 菜单C 菜单D function chan ...

  6. 微信小程序实战篇:商品属性联动选择(案例)

    本期的微信小程序实战篇来做一个电商网站经常用到的-商品属性联动选择的效果,素材参考了一点点奶茶. 效果演示: 商品属性联动.gif 代码示例 1.commodity.xml <!-- <v ...

  7. vue canvas插件_基于vue.js 制作在线桌椅定制选择交互特效源码

    码农那点事儿 关注我们,一起学习进步 基于vue.js写的在线桌子椅子垫子选择拼成的自己理想的书桌椅图像,这是一款交互式的课桌椅在线定制选择功能.非常不错,感兴趣的朋友前来下载使用. 下载源码(提取码 ...

  8. html用ajax做三级联动,怎样使用JS+AJAX做出三级联动

    这次给大家带来怎样使用JS+AJAX做出三级联动,使用JS+AJAX做出三级联动的注意事项有哪些,下面就是实战案例,一起来看一下. js 三级联动的实现代码如下所示: js原生ajax -请选择 省/ ...

  9. 模仿某招聘网站的Js搜索菜单

    < html >   < head >   < meta  http-equiv ="Content-Type"  content ="te ...

最新文章

  1. 深入浅出下一代互联网基础IPFS
  2. C/C++ 类库开发库参考【资料整理】
  3. leecode第二十一题(合并两个有序链表)
  4. 高等数理统计(part1)--随机变量及其分布函数
  5. 使用SAP云平台portal service的site manager创建portal实例
  6. Responsive Web Design 简单介绍与优缺点、实作入门, 响应式设计
  7. c# 后台传到前台乱码_ASP.NET关于前台脚本传递中文参数,后台获取乱码问题(乱码为方框,黑色方框等。。)...
  8. 微软发现已遭在野利用的 SolarWinds 新0day
  9. springboot启动命令linux,springboot项目命linux环境下命令启动
  10. Java多窗口编程示例
  11. 政府会计制度——行政事业单位会计科目和报表(2019年1月1日施行)
  12. 最新版Ubuntu新建文档
  13. OLED屏幕的手机和LCD屏幕的手机,到底哪个好?
  14. 0xc0000225无法进系统_U盘装win10后无法进系统错误代码0xc0000225怎么修复
  15. 今年11月初阿里巴巴社招面试经历分享,Java工程师方向已拿offer【附学习方法】
  16. Giving an effective oral presentation at university(The Hong Kong Polytechnic University 香港理工大学)
  17. Java项目:SSM医院病历信息管理系统
  18. freemaker 前端web教程
  19. Android开发各种Utils收集库
  20. Ser232Mon免费串口监视

热门文章

  1. 清新卡通小女孩读书背景的全民阅读PPT模板
  2. C语言简单实现计算一组数据中奇偶数个数
  3. oracle导入表无反应,EZDML无法导入oracle数据表的解决方法
  4. 4-1 Verilog 4位移位寄存器的设计与实现
  5. 数据集CollectionTP5报Cannot use object of type __PHP_Incomplete_Class as array错误
  6. 人脸识别门禁系统:基于Android的人脸识别门禁系统 毕业设计完整代码详细教程
  7. 华为发布Petal Maps:与人类想象力共振地图的边界
  8. MPEG LA推出一站式Qi无线充电许可
  9. Bartender 4 for Mac菜单栏无忧管理
  10. 电脑老是自动安装流氓软件的解决办法(详解)