function initcomplexarea(a, k, h, p, q, d, b, l) {
var f = initcomplexarea.arguments;
var m = document.getelementbyid(a);
var o = document.getelementbyid(k);
var n = document.getelementbyid(h);
var e = 0;
var c = 0;
if (p != undefined) {
if (d != undefined) {
d = parseint(d);
}
else {
d = 0;
}
if (b != undefined) {
b = parseint(b);
}
else {
b = 0;
}
if (l != undefined) {
l = parseint(l);
}
else {
l = 0
}
n[0] = new option("请选择 ", 0);
for (e = 0; e < p.length; e++) {
if (p[e] == undefined) {
continue;
}
if (f[6]) {
if (f[6] == true) {
if (e == 0) {
continue
}
}
}
m[c] = new option(p[e], e);
if (d == e) {
m[c].selected = true;
}
c++
}
if (q[d] != undefined) {
c = 0; for (e = 0; e < q[d].length; e++) {
if (q[d][e] == undefined) { continue }
if (f[6]) {
if ((f[6] == true) && (d != 71) && (d != 81) && (d != 82)) {
if ((e % 100) == 0) { continue }
}
} o[c] = new option(q[d][e], e);
if (b == e) { o[c].selected = true } c++
}
}
}
}
function changecomplexprovince(f, k, e, d) {
var c = changecomplexprovince.arguments; var h = document.getelementbyid(e);
var g = document.getelementbyid(d); var b = 0; var a = 0; removeoptions(h); f = parseint(f);
if (k[f] != undefined) {
for (b = 0; b < k[f].length; b++) {
if (k[f][b] == undefined) { continue }
if (c[3]) { if ((c[3] == true) && (f != 71) && (f != 81) && (f != 82)) { if ((b % 100) == 0) { continue } } }
h[a] = new option(k[f][b], b); a++
}
}
removeoptions(g); g[0] = new option("请选择 ", 0);
if (f == 11 || f == 12 || f == 31 || f == 71 || f == 50 || f == 81 || f == 82) {
if ($("#" + d + "_div"))
{ $("#" + d + "_div").hide(); }
}
else {
if ($("#" + d + "_div")) { $("#" + d + "_div").show(); }
}
}
function changecity(c, a, t) {
$("#" + a).html('');
$("#" + a).unbind("change");
c = parseint(c);
var _d = sub_arr[c];
var str = "";
str += "";
for (var i = c * 100; i < _d.length; i++) {
if (_d[i] == undefined) continue;
str += "";
}
$("#" + a).html(str);
}
function removeoptions(c) {
if ((c != undefined) && (c.options != undefined)) {
var a = c.options.length;
for (var b = 0; b < a; b++) {
c.options[0] = null;
}
}
}