
	/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function showMore(oC, sId)
{
  if (oC && document.getElementById(sId))
  {
    var oDE = document.getElementById(sId);
    if (oC.checked)
    {
      oDE.style.display = '';
    }
    else
    {
      oDE.style.display = 'none';
    }
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

var checkcc;
checkcc = 1;
function ck()
{
  if (hid.style.display == "")
  {
    hid.style.display = "none";
  }
  else
  {
    hid.style.display = "";
    checkcc = 2;
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function GetPosition(positionid)
{
  document.frames["positionframe"].location.replace(
    "/Functions/lib/Per_AdSearch_Position.asp?positionid=" + positionid);
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function GetCapital(capitalid)
{
  document.frames["capitalframe"].location.replace(
    "/Functions/lib/Per_AdSearch_Capital.asp?capitalid=" + capitalid);
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function GetProfession(professionid)
{
  document.frames["professionframe"].location.replace(
    "/Functions/lib/Per_AdSearch_Profession.asp?professionid=" + professionid);
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function fnRemoveBrank(strSource)
{
  return strSource.replace( /  ^  \    s *  / , '').replace( /  \    s * $ / , '');
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

var myarray = new Array(",", "'", "@", "$", "%", "?", "!", "|", "~", ":", "/",
  "\\", "*", "=", "<", ">", "(", ")", "《", "》", "[", "]", "_", "-", "{");
function GetItemvalue(ObjName) //得到下拉框所有选项的值
{
  ObjID = GetItemID(ObjName);
  Itemvalue = "";
  i = document.form2.elements[ObjID].options.length;
  for (h = 0; h < i; h++)
  {
    if (h == 0)
    {
      Itemvalue = document.form2.elements[ObjID].options[h].value;
    }
    else
    {
      Itemvalue = Itemvalue + "," +
        document.form2.elements[ObjID].options[h].value;
    }
  }
  return (Itemvalue);
}

/*select Option*/
function GetItemID(ObjName) //由名称得到表单序号
{
  for (var ObjID = 0; ObjID < window.form2.elements.length; ObjID++)
  if (window.form2.elements[ObjID].name == ObjName)
  {
    return (ObjID);
    break;
  }
  return ( - 1);
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function AddItem(ObjName, DesName, FirstName, SecondName)
//把左边下拉框的信息添加到右边下拉框
{
  ObjID = GetItemID(ObjName);
  DesObjID = GetItemID(DesName);
  if (FirstName != "")
  {
    FirstID = GetItemID(FirstName);
  }
  if (SecondName != "")
  {
    SecondID = GetItemID(SecondName);
  }
  j = document.form2.elements[DesObjID].options.length;
  for (k = 0; k < j; k++)
  {
    if (document.form2.elements[DesObjID].options[k].value == "0000")
    {
      window.alert('您已经选择了不限！');
      return ;
    }
  }
  var totalSelect = 3;
  k = 0;
  i = document.form2.elements[ObjID].options.length;
  if (i == 0)
  {
    return ;
  }
  maxsel = 0;
  for (h = 0; h < i; h++)
  if (document.form2.elements[ObjID].options[h].selected)
  {
    k = k + 1;
    maxsel = h + 1;
  }
  if (maxsel >= i)
  {
    maxsel = 0;
  }
  if (document.form2.elements[DesObjID].length + k > totalSelect)
  {
    window.alert('最多可选择' + totalSelect + '项！');
    return ;
  }
  if (ObjID !=  - 1 && DesObjID !=  - 1)
  {
    i = document.form2.elements[ObjID].options.length;
    j = document.form2.elements[DesObjID].options.length;
    for (h = 0; h < i; h++)
    {
      if (document.form2.elements[ObjID].options[h].selected)
      {
        if ((FirstName != "") && (SecondName != ""))
        {
          Text = document.form2.elements[ObjID].options[h].text;
        }
        else
        {
          if ((FirstName == "") && (SecondName == ""))
          {
            Text = document.form2.elements[ObjID].options[h].text;
          }
          else
          {
            Text = document.form2.elements[ObjID].options[h].text;
          }
        }
        Code = document.form2.elements[ObjID].options[h].value;
        K_Select = false;
        if (Code == "")
        {
          K_Select = true;
          window.alert('请先选择选项再点击添加！');
          return ;
        }
        else
        {
          j = document.form2.elements[DesObjID].options.length;
          /*		var FCode=Code.split('*')[0];
          var Code=Code.split('*')[1];
           */
          for (k = 0; k < j; k++)
          {
            if (document.form2.elements[DesObjID].options[k].value == Code)
            {
              K_Select = true;
              window.alert('您已选择了该项！');
              return ;
            }
            else
            {
              if (document.form2.elements[DesObjID].options[k].value ==
                Code.substr(0, 4))
              {
                K_Select = true;
                window.alert('您已选择了该项所在类别的不限！');
                return ;
              }
              /*			if(document.form2.elements[DesObjID].options[k].value==''+FCode){
              alert("您已经选择了该类全部,不能再选择该类其它项目");
              return;
              }
               */
              else
              {
                if (document.form2.elements[DesObjID].options[k].value.substr(0,
                  4) == Code)
                {
                  K_Select = true;
                  window.alert('您已选择了该项所在类别中的子项！');
                  return ;
                }
              }
            }
          }
        }
        if (K_Select == false)
        {
          document.form2.elements[DesObjID].options[j] = new Option(Text, Code);
        }
        document.form2.elements[ObjID].options[h].selected = false;
      }
    }
    document.form2.elements[ObjID].options[maxsel].selected = true;
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function DelItem(ObjName) ////把右边下拉框的信息删除
{
  ObjID = GetItemID(ObjName);
  min_sel = 0;
  if (ObjID !=  - 1)
  {
    for (i = window.form2.elements[ObjID].length - 1; i >= 0; i--)
    {
      if (window.form2.elements[ObjID].options[i].selected)
      {
        if (min_sel == 0 || i < min_sel)
        {
          min_sel = i;
        }
        window.form2.elements[ObjID].options[i] = null;
      }
    }
    i = window.form2.elements[ObjID].length;
    if (i > 0)
    {
      if (min_sel >= i)
      {
        min_sel = i - 1;
      }
      window.form2.elements[ObjID].options[min_sel].selected = true;
    }
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function GetItemvalue(ObjName) //得到下拉框所有选项的值
{
  //alert(ObjName);
  ObjID = GetItemID(ObjName);
  Itemvalue = "";
  i = document.form2.elements[ObjID].options.length;
  for (h = 0; h < i; h++)
  {
    if (h == 0)
    {
      Itemvalue = document.form2.elements[ObjID].options[h].value;
    }
    else
    {
      Itemvalue = Itemvalue + "," +
        document.form2.elements[ObjID].options[h].value;
    }
  }
  return (Itemvalue);
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function Juge(theForm)
{
  theForm.trade.value = GetItemvalue("temptrade");
  
  if (theForm.trade.value == "")
  {
    theForm.trade.value = "0000";
  }
  
 /* if (fnRemoveBrank(theForm.position.value) == '0000' && theForm.workadd.value
    == '0000' && fnRemoveBrank(theForm.keyword.value) == '')
  {
    alert("职位类别、工作地区、关键字三个条件至少选择其中一个");
    theForm.keyword.focus();
    return (false);
  }
*/
  for (i = 0; i < myarray.length; i++)
  {
    if (theForm.keyword.value.indexOf(myarray[i]) !=  - 1)
    {
      alert("输入的关键字包含不规范词语");
      return false;
    }
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function AddItemII(ObjName, DesName, FirstName, SecondName)
//把左边下拉框的信息添加到右边下拉框
{
  ObjID = GetItemID(ObjName);
  DesObjID = GetItemID(DesName);
  if (FirstName != "")
  {
    FirstID = GetItemID(FirstName);
  }
  if (SecondName != "")
  {
    SecondID = GetItemID(SecondName);
  }
  j = document.form2.elements[DesObjID].options.length;
  var kk;
  for (k = 0; k < j; k++)
  {
    if (document.form2.elements[DesObjID].options[k].value == "0000")
    {
      window.alert('您已经选择了全部！');
      return ;
    }
  }
  var totalSelect = 3;
  k = 0;
  i = document.form2.elements[ObjID].options.length;
  if (i == 0)
  {
    return ;
  }
  maxsel = 0;
  for (h = 0; h < i; h++)
  if (document.form2.elements[ObjID].options[h].selected)
  {
    k = k + 1;
    maxsel = h + 1;
  }
  if (maxsel >= i)
  {
    maxsel = 0;
  }
  if (document.form2.elements[DesObjID].length + k > totalSelect)
  {
    window.alert('最多可选择' + totalSelect + '项！');
    return ;
  }
  if (ObjID !=-1 && DesObjID !=-1)
  {
    i = document.form2.elements[ObjID].options.length;
    j = document.form2.elements[DesObjID].options.length;
    for (h = 0; h < i; h++)
    {
      if (document.form2.elements[ObjID].options[h].selected)
      {
        if ((FirstName != "") && (SecondName != ""))
        {
          Text =
            document.form2.elements[FirstID].options[document.form2.elements[FirstID].selectedIndex].text + "-" + document.form2.elements[SecondID].options[document.form2.elements[SecondID].selectedIndex].text + "-" + document.form2.elements[ObjID].options[h].text;
        }
        else
        {
          if ((FirstName == "") && (SecondName == ""))
          {
            Text = document.form2.elements[ObjID].options[h].text;
          }
          else
          {
            Text =
              document.form2.elements[SecondID].options[document.form2.elements[SecondID].selectedIndex].text + "-" + document.form2.elements[ObjID].options[h].text;
          }
        }
        Code = document.form2.elements[ObjID].options[h].value;
        K_Select = false;
        if (Code == "")
        {
          K_Select = true;
          window.alert('请先选择选项再点击添加！');
          return ;
        }
        else
        {
          j = document.form2.elements[DesObjID].options.length;
          FCode = Code.split('*')[0];
          Code = Code.split('*')[1];
          //alert (FCode);
          for (k = 0; k < j; k++)
          {
            //选分支不能选总的全部
            if (document.form2.elements[DesObjID].options[k].value != Code &&
              Code == '0000')
            {
              alert("您已经选择了相关项目,不能再选择全部");
              return ;
            }
            //选全部不能选分支
            // if(document.form2.elements[DesObjID].options[k].value=='0*'+FCode){
            if (document.form2.elements[DesObjID].options[k].value == '' +
              FCode)
            {
              alert("您已经选择了该类全部,不能再选择该类其它项目");
              return ;
            }
            //选分支不能选全部
            if (FCode == '0' && checkfid
              (document.form2.elements[DesObjID].options[k].value) == Code)
            {
              alert("您已经选择了该类中的项目,不能再选择该类全部");
              return ;
            }
            if (document.form2.elements[DesObjID].options[k].value == (FCode +
              "*" + Code))
            {
              K_Select = true;
              window.alert('您已选择了该项！');
              return ;
            }
            else
            {
              if (document.form2.elements[DesObjID].options[k].value ==
                Code.substr(0, 4))
              {
                K_Select = true;
                window.alert('您已选择了该项所在类别的不限！');
                return ;
              }
              else
              {
                if (document.form2.elements[DesObjID].options[k].value.substr(0,
                  4) == Code)
                {
                  K_Select = true;
                  window.alert('您已选择了该项所在类别中的子项！');
                  return ;
                }
              }
            }
          }
        }
        if (K_Select == false)
        {
          /*		 //当FCode=0时，不存储FCode
          if( FCode =='0')
          {
          document.form2.elements[DesObjID].options[j] = new Option(Text, Code);
          }
          else
          {
          document.form2.elements[DesObjID].options[j] = new Option(Text, FCode+'*'+Code);
          }
          //end*/
          /*	document.form2.elements[DesObjID].options[j] = new Option(Text, FCode+'*'+Code);*/
          document.form2.elements[DesObjID].options[j] = new Option(Text, Code);
        }
        document.form2.elements[ObjID].options[h].selected = false;
      }
    }
    document.form2.elements[ObjID].options[maxsel].selected = true;
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function AddItemdistrict(ObjName, DesName, FirstName, SecondName)
//把左边下拉框的信息添加到右边下拉框
{
  ObjID = GetItemID(ObjName);
  DesObjID = GetItemID(DesName);
  if (FirstName != "")
  {
    FirstID = GetItemID(FirstName);
  }
  if (SecondName != "")
  {
    SecondID = GetItemID(SecondName);
  }
  j = document.form2.elements[DesObjID].options.length;
  var kk;
  for (k = 0; k < j; k++)
  {
    if (document.form2.elements[DesObjID].options[k].value == "0000")
    {
      window.alert('您已经选择了全部！');
      return ;
    }
  }
  var totalSelect = 3;
  k = 0;
  i = document.form2.elements[ObjID].options.length;
  if (i == 0)
  {
    return ;
  }
  maxsel = 0;
  for (h = 0; h < i; h++)
  if (document.form2.elements[ObjID].options[h].selected)
  {
    k = k + 1;
    maxsel = h + 1;
  }
  if (maxsel >= i)
  {
    maxsel = 0;
  }
  if (document.form2.elements[DesObjID].length + k > totalSelect)
  {
    window.alert('最多可选择' + totalSelect + '项！');
    return ;
  }
  if (ObjID !=  - 1 && DesObjID !=  - 1)
  {
    i = document.form2.elements[ObjID].options.length;
    j = document.form2.elements[DesObjID].options.length;
    for (h = 0; h < i; h++)
    {
      if (document.form2.elements[ObjID].options[h].selected)
      {
        if ((FirstName != "") && (SecondName != ""))
        {
          Text =
            document.form2.elements[FirstID].options[document.form2.elements[FirstID].selectedIndex].text + "-" + document.form2.elements[SecondID].options[document.form2.elements[SecondID].selectedIndex].text + "-" + document.form2.elements[ObjID].options[h].text;
        }
        else
        {
          if ((FirstName == "") && (SecondName == ""))
          {
            Text = document.form2.elements[ObjID].options[h].text;
          }
          else
          {
            Text =
              document.form2.elements[SecondID].options[document.form2.elements[SecondID].selectedIndex].text + "-" + document.form2.elements[ObjID].options[h].text;
          }
        }
        Code = document.form2.elements[ObjID].options[h].value;
        K_Select = false;
        if (Code == "")
        {
          K_Select = true;
          window.alert('请先选择选项再点击添加！');
          return ;
        }
        else
        {
          j = document.form2.elements[DesObjID].options.length;
          FCode = Code.split('*')[0];
          Code = Code.split('*')[1];
          for (k = 0; k < j; k++)
          {
            //选分支不能选总的全部
            if (document.form2.elements[DesObjID].options[k].value != Code &&
              Code == '0000')
            {
              alert("您已经选择了相关项目,不能再选择全部");
              return ;
            }
            //选全部不能选分支
            // if(document.form2.elements[DesObjID].options[k].value=='0*'+FCode){
            if (document.form2.elements[DesObjID].options[k].value == '' +
              FCode)
            {
              alert("您已经选择了该类全部,不能再选择该类其它项目");
              return ;
            }
            //选分支不能选全部
            if (FCode == '0' && checkdisttrictfid
              (document.form2.elements[DesObjID].options[k].value) == Code)
            {
              alert("您已经选择了该类中的项目,不能再选择该类全部");
              return ;
            }
            if (document.form2.elements[DesObjID].options[k].value == (FCode +
              "*" + Code))
            {
              K_Select = true;
              window.alert('您已选择了该项！');
              return ;
            }
            else
            {
              if (document.form2.elements[DesObjID].options[k].value ==
                Code.substr(0, 4))
              {
                K_Select = true;
                window.alert('您已选择了该项所在类别的不限！');
                return ;
              }
              else
              {
                if (document.form2.elements[DesObjID].options[k].value.substr(0,
                  4) == Code)
                {
                  K_Select = true;
                  window.alert('您已选择了该项所在类别中的子项！');
                  return ;
                }
              }
            }
          }
        }
        if (K_Select == false)
        {
          //当FCode=0时，不存储FCode
          document.form2.elements[DesObjID].options[j] = new Option(Text, Code);
          //end
          // document.form2.elements[DesObjID].options[j] = new Option(Text, FCode+'*'+Code);
        }
        document.form2.elements[ObjID].options[h].selected = false;
      }
    }
    document.form2.elements[ObjID].options[maxsel].selected = true;
  }
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function checkfid(id)
{
  if (id == 1041)
  {
    return 1000
  };
  if (id == 1042)
  {
    return 1000
  };
  if (id == 1043)
  {
    return 1000
  };
  if (id == 1044)
  {
    return 1000
  };
  if (id == 1045)
  {
    return 1000
  };
  if (id == 1046)
  {
    return 1000
  };
  if (id == 1047)
  {
    return 1000
  };
  if (id == 1048)
  {
    return 1000
  };
  if (id == 1049)
  {
    return 1000
  };
  if (id == 1050)
  {
    return 1000
  };
  if (id == 1051)
  {
    return 1000
  };
  if (id == 1052)
  {
    return 1000
  };
  if (id == 1053)
  {
    return 1000
  };
  if (id == 1054)
  {
    return 1001
  };
  if (id == 1055)
  {
    return 1001
  };
  if (id == 1056)
  {
    return 1001
  };
  if (id == 1057)
  {
    return 1001
  };
  if (id == 1058)
  {
    return 1001
  };
  if (id == 1059)
  {
    return 1001
  };
  if (id == 1060)
  {
    return 1001
  };
  if (id == 1061)
  {
    return 1001
  };
  if (id == 1062)
  {
    return 1001
  };
  if (id == 1063)
  {
    return 1001
  };
  if (id == 1064)
  {
    return 1001
  };
  if (id == 1065)
  {
    return 1001
  };
  if (id == 1066)
  {
    return 1001
  };
  if (id == 1067)
  {
    return 1001
  };
  if (id == 1068)
  {
    return 1001
  };
  if (id == 1069)
  {
    return 1001
  };
  if (id == 1070)
  {
    return 1002
  };
  if (id == 1071)
  {
    return 1002
  };
  if (id == 1072)
  {
    return 1002
  };
  if (id == 1073)
  {
    return 1002
  };
  if (id == 1074)
  {
    return 1002
  };
  if (id == 1075)
  {
    return 1002
  };
  if (id == 1076)
  {
    return 1002
  };
  if (id == 1077)
  {
    return 1002
  };
  if (id == 1078)
  {
    return 1002
  };
  if (id == 1079)
  {
    return 1003
  };
  if (id == 1080)
  {
    return 1003
  };
  if (id == 1081)
  {
    return 1003
  };
  if (id == 1082)
  {
    return 1003
  };
  if (id == 1083)
  {
    return 1003
  };
  if (id == 1084)
  {
    return 1003
  };
  if (id == 1085)
  {
    return 1003
  };
  if (id == 1086)
  {
    return 1003
  };
  if (id == 1087)
  {
    return 1003
  };
  if (id == 1088)
  {
    return 1003
  };
  if (id == 1089)
  {
    return 1003
  };
  if (id == 1090)
  {
    return 1003
  };
  if (id == 1091)
  {
    return 1003
  };
  if (id == 1092)
  {
    return 1003
  };
  if (id == 1093)
  {
    return 1003
  };
  if (id == 1094)
  {
    return 1003
  };
  if (id == 1095)
  {
    return 1003
  };
  if (id == 1096)
  {
    return 1003
  };
  if (id == 1097)
  {
    return 1003
  };
  if (id == 1098)
  {
    return 1003
  };
  if (id == 1099)
  {
    return 1003
  };
  if (id == 1100)
  {
    return 1003
  };
  if (id == 1101)
  {
    return 1003
  };
  if (id == 1102)
  {
    return 1003
  };
  if (id == 1103)
  {
    return 1003
  };
  if (id == 1104)
  {
    return 1003
  };
  if (id == 1105)
  {
    return 1003
  };
  if (id == 1106)
  {
    return 1003
  };
  if (id == 1107)
  {
    return 1003
  };
  if (id == 1108)
  {
    return 1003
  };
  if (id == 1109)
  {
    return 1003
  };
  if (id == 1110)
  {
    return 1003
  };
  if (id == 1111)
  {
    return 1003
  };
  if (id == 1112)
  {
    return 1004
  };
  if (id == 1113)
  {
    return 1004
  };
  if (id == 1114)
  {
    return 1004
  };
  if (id == 1115)
  {
    return 1004
  };
  if (id == 1116)
  {
    return 1004
  };
  if (id == 1117)
  {
    return 1004
  };
  if (id == 1118)
  {
    return 1004
  };
  if (id == 1119)
  {
    return 1004
  };
  if (id == 1120)
  {
    return 1004
  };
  if (id == 1121)
  {
    return 1004
  };
  if (id == 1122)
  {
    return 1004
  };
  if (id == 1123)
  {
    return 1004
  };
  if (id == 1124)
  {
    return 1004
  };
  if (id == 1125)
  {
    return 1005
  };
  if (id == 1126)
  {
    return 1005
  };
  if (id == 1127)
  {
    return 1005
  };
  if (id == 1128)
  {
    return 1005
  };
  if (id == 1129)
  {
    return 1005
  };
  if (id == 1130)
  {
    return 1005
  };
  if (id == 1131)
  {
    return 1005
  };
  if (id == 1132)
  {
    return 1005
  };
  if (id == 1133)
  {
    return 1005
  };
  if (id == 1134)
  {
    return 1006
  };
  if (id == 1135)
  {
    return 1006
  };
  if (id == 1136)
  {
    return 1006
  };
  if (id == 1137)
  {
    return 1006
  };
  if (id == 1138)
  {
    return 1006
  };
  if (id == 1139)
  {
    return 1006
  };
  if (id == 1140)
  {
    return 1006
  };
  if (id == 1141)
  {
    return 1006
  };
  if (id == 1142)
  {
    return 1007
  };
  if (id == 1143)
  {
    return 1007
  };
  if (id == 1144)
  {
    return 1007
  };
  if (id == 1145)
  {
    return 1007
  };
  if (id == 1146)
  {
    return 1007
  };
  if (id == 1147)
  {
    return 1007
  };
  if (id == 1148)
  {
    return 1007
  };
  if (id == 1149)
  {
    return 1007
  };
  if (id == 1150)
  {
    return 1008
  };
  if (id == 1151)
  {
    return 1008
  };
  if (id == 1152)
  {
    return 1008
  };
  if (id == 1153)
  {
    return 1008
  };
  if (id == 1154)
  {
    return 1008
  };
  if (id == 1155)
  {
    return 1008
  };
  if (id == 1156)
  {
    return 1008
  };
  if (id == 1157)
  {
    return 1008
  };
  if (id == 1158)
  {
    return 1008
  };
  if (id == 1159)
  {
    return 1008
  };
  if (id == 1160)
  {
    return 1009
  };
  if (id == 1161)
  {
    return 1009
  };
  if (id == 1162)
  {
    return 1009
  };
  if (id == 1163)
  {
    return 1009
  };
  if (id == 1164)
  {
    return 1009
  };
  if (id == 1165)
  {
    return 1009
  };
  if (id == 1166)
  {
    return 1009
  };
  if (id == 1167)
  {
    return 1009
  };
  if (id == 1168)
  {
    return 1009
  };
  if (id == 1169)
  {
    return 1009
  };
  if (id == 1170)
  {
    return 1009
  };
  if (id == 1171)
  {
    return 1010
  };
  if (id == 1172)
  {
    return 1010
  };
  if (id == 1173)
  {
    return 1010
  };
  if (id == 1174)
  {
    return 1010
  };
  if (id == 1175)
  {
    return 1010
  };
  if (id == 1176)
  {
    return 1010
  };
  if (id == 1177)
  {
    return 1010
  };
  if (id == 1178)
  {
    return 1010
  };
  if (id == 1179)
  {
    return 1010
  };
  if (id == 1180)
  {
    return 1010
  };
  if (id == 1181)
  {
    return 1010
  };
  if (id == 1182)
  {
    return 1010
  };
  if (id == 1183)
  {
    return 1010
  };
  if (id == 1184)
  {
    return 1010
  };
  if (id == 1185)
  {
    return 1010
  };
  if (id == 1186)
  {
    return 1011
  };
  if (id == 1187)
  {
    return 1011
  };
  if (id == 1188)
  {
    return 1011
  };
  if (id == 1189)
  {
    return 1011
  };
  if (id == 1190)
  {
    return 1011
  };
  if (id == 1191)
  {
    return 1011
  };
  if (id == 1192)
  {
    return 1011
  };
  if (id == 1193)
  {
    return 1011
  };
  if (id == 1194)
  {
    return 1012
  };
  if (id == 1195)
  {
    return 1012
  };
  if (id == 1196)
  {
    return 1012
  };
  if (id == 1197)
  {
    return 1012
  };
  if (id == 1198)
  {
    return 1012
  };
  if (id == 1199)
  {
    return 1012
  };
  if (id == 1200)
  {
    return 1012
  };
  if (id == 1201)
  {
    return 1013
  };
  if (id == 1202)
  {
    return 1013
  };
  if (id == 1203)
  {
    return 1013
  };
  if (id == 1204)
  {
    return 1013
  };
  if (id == 1205)
  {
    return 1013
  };
  if (id == 1206)
  {
    return 1013
  };
  if (id == 1207)
  {
    return 1013
  };
  if (id == 1208)
  {
    return 1013
  };
  if (id == 1209)
  {
    return 1013
  };
  if (id == 1210)
  {
    return 1013
  };
  if (id == 1211)
  {
    return 1014
  };
  if (id == 1212)
  {
    return 1014
  };
  if (id == 1213)
  {
    return 1014
  };
  if (id == 1214)
  {
    return 1014
  };
  if (id == 1215)
  {
    return 1014
  };
  if (id == 1216)
  {
    return 1014
  };
  if (id == 1217)
  {
    return 1014
  };
  if (id == 1218)
  {
    return 1014
  };
  if (id == 1219)
  {
    return 1014
  };
  if (id == 1220)
  {
    return 1014
  };
  if (id == 1221)
  {
    return 1014
  };
  if (id == 1222)
  {
    return 1014
  };
  if (id == 1223)
  {
    return 1014
  };
  if (id == 1224)
  {
    return 1014
  };
  if (id == 1225)
  {
    return 1014
  };
  if (id == 1226)
  {
    return 1014
  };
  if (id == 1227)
  {
    return 1014
  };
  if (id == 1228)
  {
    return 1015
  };
  if (id == 1229)
  {
    return 1015
  };
  if (id == 1230)
  {
    return 1015
  };
  if (id == 1231)
  {
    return 1015
  };
  if (id == 1232)
  {
    return 1015
  };
  if (id == 1233)
  {
    return 1015
  };
  if (id == 1234)
  {
    return 1015
  };
  if (id == 1235)
  {
    return 1015
  };
  if (id == 1236)
  {
    return 1015
  };
  if (id == 1237)
  {
    return 1015
  };
  if (id == 1238)
  {
    return 1015
  };
  if (id == 1239)
  {
    return 1015
  };
  if (id == 1240)
  {
    return 1015
  };
  if (id == 1241)
  {
    return 1015
  };
  if (id == 1242)
  {
    return 1015
  };
  if (id == 1243)
  {
    return 1015
  };
  if (id == 1244)
  {
    return 1015
  };
  if (id == 1245)
  {
    return 1016
  };
  if (id == 1246)
  {
    return 1016
  };
  if (id == 1247)
  {
    return 1016
  };
  if (id == 1248)
  {
    return 1016
  };
  if (id == 1249)
  {
    return 1016
  };
  if (id == 1250)
  {
    return 1016
  };
  if (id == 1251)
  {
    return 1016
  };
  if (id == 1252)
  {
    return 1016
  };
  if (id == 1253)
  {
    return 1016
  };
  if (id == 1254)
  {
    return 1016
  };
  if (id == 1255)
  {
    return 1016
  };
  if (id == 1256)
  {
    return 1016
  };
  if (id == 1257)
  {
    return 1016
  };
  if (id == 1258)
  {
    return 1016
  };
  if (id == 1259)
  {
    return 1016
  };
  if (id == 1260)
  {
    return 1016
  };
  if (id == 1261)
  {
    return 1016
  };
  if (id == 1262)
  {
    return 1017
  };
  if (id == 1263)
  {
    return 1017
  };
  if (id == 1264)
  {
    return 1017
  };
  if (id == 1265)
  {
    return 1017
  };
  if (id == 1266)
  {
    return 1017
  };
  if (id == 1267)
  {
    return 1017
  };
  if (id == 1268)
  {
    return 1017
  };
  if (id == 1269)
  {
    return 1017
  };
  if (id == 1270)
  {
    return 1017
  };
  if (id == 1271)
  {
    return 1017
  };
  if (id == 1272)
  {
    return 1018
  };
  if (id == 1273)
  {
    return 1018
  };
  if (id == 1274)
  {
    return 1018
  };
  if (id == 1275)
  {
    return 1018
  };
  if (id == 1276)
  {
    return 1019
  };
  if (id == 1277)
  {
    return 1019
  };
  if (id == 1278)
  {
    return 1019
  };
  if (id == 1279)
  {
    return 1019
  };
  if (id == 1280)
  {
    return 1019
  };
  if (id == 1281)
  {
    return 1019
  };
  if (id == 1282)
  {
    return 1019
  };
  if (id == 1283)
  {
    return 1020
  };
  if (id == 1284)
  {
    return 1020
  };
  if (id == 1285)
  {
    return 1020
  };
  if (id == 1286)
  {
    return 1020
  };
  if (id == 1287)
  {
    return 1020
  };
  if (id == 1288)
  {
    return 1020
  };
  if (id == 1289)
  {
    return 1020
  };
  if (id == 1290)
  {
    return 1020
  };
  if (id == 1291)
  {
    return 1021
  };
  if (id == 1292)
  {
    return 1021
  };
  if (id == 1293)
  {
    return 1021
  };
  if (id == 1294)
  {
    return 1021
  };
  if (id == 1295)
  {
    return 1021
  };
  if (id == 1296)
  {
    return 1021
  };
  if (id == 1297)
  {
    return 1021
  };
  if (id == 1298)
  {
    return 1022
  };
  if (id == 1299)
  {
    return 1022
  };
  if (id == 1300)
  {
    return 1022
  };
  if (id == 1301)
  {
    return 1023
  };
  if (id == 1302)
  {
    return 1023
  };
  if (id == 1303)
  {
    return 1023
  };
  if (id == 1304)
  {
    return 1023
  };
  if (id == 1305)
  {
    return 1023
  };
  if (id == 1306)
  {
    return 1023
  };
  if (id == 1307)
  {
    return 1025
  };
  if (id == 1308)
  {
    return 1025
  };
  if (id == 1309)
  {
    return 1025
  };
  if (id == 1310)
  {
    return 1025
  };
  if (id == 1311)
  {
    return 1025
  };
  if (id == 1312)
  {
    return 1025
  };
  if (id == 1313)
  {
    return 1025
  };
  if (id == 1314)
  {
    return 1025
  };
  if (id == 1315)
  {
    return 1025
  };
  if (id == 1316)
  {
    return 1025
  };
  if (id == 1317)
  {
    return 1025
  };
  if (id == 1318)
  {
    return 1026
  };
  if (id == 1319)
  {
    return 1026
  };
  if (id == 1320)
  {
    return 1026
  };
  if (id == 1321)
  {
    return 1026
  };
  if (id == 1322)
  {
    return 1026
  };
  if (id == 1323)
  {
    return 1026
  };
  if (id == 1324)
  {
    return 1026
  };
  if (id == 1325)
  {
    return 1026
  };
  if (id == 1326)
  {
    return 1026
  };
  if (id == 1327)
  {
    return 1026
  };
  if (id == 1328)
  {
    return 1026
  };
  if (id == 1329)
  {
    return 1026
  };
  if (id == 1330)
  {
    return 1026
  };
  if (id == 1331)
  {
    return 1026
  };
  if (id == 1332)
  {
    return 1027
  };
  if (id == 1333)
  {
    return 1027
  };
  if (id == 1334)
  {
    return 1027
  };
  if (id == 1335)
  {
    return 1027
  };
  if (id == 1336)
  {
    return 1027
  };
  if (id == 1337)
  {
    return 1027
  };
  if (id == 1338)
  {
    return 1027
  };
  if (id == 1339)
  {
    return 1027
  };
  if (id == 1340)
  {
    return 1027
  };
  if (id == 1341)
  {
    return 1027
  };
  if (id == 1342)
  {
    return 1027
  };
  if (id == 1343)
  {
    return 1028
  };
  if (id == 1344)
  {
    return 1028
  };
  if (id == 1345)
  {
    return 1028
  };
  if (id == 1346)
  {
    return 1028
  };
  if (id == 1347)
  {
    return 1028
  };
  if (id == 1348)
  {
    return 1028
  };
  if (id == 1349)
  {
    return 1029
  };
  if (id == 1350)
  {
    return 1029
  };
  if (id == 1351)
  {
    return 1029
  };
  if (id == 1352)
  {
    return 1029
  };
  if (id == 1353)
  {
    return 1029
  };
  if (id == 1354)
  {
    return 1029
  };
  if (id == 1355)
  {
    return 1029
  };
  if (id == 1356)
  {
    return 1029
  };
  if (id == 1357)
  {
    return 1030
  };
  if (id == 1358)
  {
    return 1030
  };
  if (id == 1359)
  {
    return 1030
  };
  if (id == 1360)
  {
    return 1030
  };
  if (id == 1361)
  {
    return 1030
  };
  if (id == 1362)
  {
    return 1030
  };
  if (id == 1363)
  {
    return 1030
  };
  if (id == 1364)
  {
    return 1030
  };
  if (id == 1365)
  {
    return 1030
  };
  if (id == 1366)
  {
    return 1030
  };
  if (id == 1367)
  {
    return 1030
  };
  if (id == 1368)
  {
    return 1030
  };
  if (id == 1369)
  {
    return 1031
  };
  if (id == 1370)
  {
    return 1031
  };
  if (id == 1371)
  {
    return 1031
  };
  if (id == 1372)
  {
    return 1031
  };
  if (id == 1373)
  {
    return 1031
  };
  if (id == 1374)
  {
    return 1031
  };
}

/**************************************************************************/
/*                                                                        */
/**************************************************************************/

function checkdisttrictfid(id)
{
  if (id.substr(0, 2) == 10)
  {
    return 1000
  };
  if (id.substr(0, 2) == 11)
  {
    return 1100
  };
  if (id.substr(0, 2) == 12)
  {
    return 1200
  };
  if (id.substr(0, 2) == 13)
  {
    return 1300
  };
  if (id.substr(0, 2) == 14)
  {
    return 1400
  };
  if (id.substr(0, 2) == 15)
  {
    return 1500
  };
  if (id.substr(0, 2) == 16)
  {
    return 1600
  };
  if (id.substr(0, 2) == 17)
  {
    return 1700
  };
  if (id.substr(0, 2) == 18)
  {
    return 1800
  };
  if (id.substr(0, 2) == 19)
  {
    return 1900
  };
  if (id.substr(0, 2) == 20)
  {
    return 2000
  };
  if (id.substr(0, 2) == 21)
  {
    return 2100
  };
  if (id.substr(0, 2) == 22)
  {
    return 2200
  };
  if (id.substr(0, 2) == 23)
  {
    return 2300
  };
  if (id.substr(0, 2) == 24)
  {
    return 2400
  };
  if (id.substr(0, 2) == 25)
  {
    return 2500
  };
  if (id.substr(0, 2) == 26)
  {
    return 2600
  };
  if (id.substr(0, 2) == 27)
  {
    return 2700
  };
  if (id.substr(0, 2) == 28)
  {
    return 2800
  };
  if (id.substr(0, 2) == 29)
  {
    return 2900
  };
  if (id.substr(0, 2) == 30)
  {
    return 3000
  };
  if (id.substr(0, 2) == 31)
  {
    return 3100
  };
  if (id.substr(0, 2) == 32)
  {
    return 3200
  };
  if (id.substr(0, 2) == 33)
  {
    return 3300
  };
  if (id.substr(0, 2) == 34)
  {
    return 3400
  };
  if (id.substr(0, 2) == 35)
  {
    return 3500
  };
  if (id.substr(0, 2) == 36)
  {
    return 3600
  };
  if (id.substr(0, 2) == 37)
  {
    return 3700
  };
  if (id.substr(0, 2) == 38)
  {
    return 3800
  };
  if (id.substr(0, 2) == 39)
  {
    return 3900
  };
  if (id.substr(0, 2) == 40)
  {
    return 4000
  };
  if (id.substr(0, 2) == 41)
  {
    return 4100
  };
}
	
