<script language="javascript">
var areaArray = new Array();
areaArray[areaArray.length]=new Array("1","河北省");
areaArray[areaArray.length]=new Array("2","河南省");
areaArray[areaArray.length]=new Array("3","云南省");
areaArray[areaArray.length]=new Array("4","辽宁省");
areaArray[areaArray.length]=new Array("5","黑龙江省");
areaArray[areaArray.length]=new Array("6","湖南省");
areaArray[areaArray.length]=new Array("7","安徽省");
areaArray[areaArray.length]=new Array("8","山东省");
areaArray[areaArray.length]=new Array("9","新疆维吾尔自治区");
areaArray[areaArray.length]=new Array("10","江苏省");
areaArray[areaArray.length]=new Array("11","浙江省");
areaArray[areaArray.length]=new Array("12","江西省");
areaArray[areaArray.length]=new Array("13","湖北省");
areaArray[areaArray.length]=new Array("14","广西壮族自治区");
areaArray[areaArray.length]=new Array("15","甘肃省");
areaArray[areaArray.length]=new Array("16","山西省");
areaArray[areaArray.length]=new Array("17","内蒙古自治区");
areaArray[areaArray.length]=new Array("18","陕西省");
areaArray[areaArray.length]=new Array("19","吉林省");
areaArray[areaArray.length]=new Array("20","福建省");
areaArray[areaArray.length]=new Array("21","贵州省");
areaArray[areaArray.length]=new Array("22","广东省");
areaArray[areaArray.length]=new Array("23","四川省");
areaArray[areaArray.length]=new Array("24","青海省");
areaArray[areaArray.length]=new Array("25","西藏自治区");
areaArray[areaArray.length]=new Array("26","海南省");
areaArray[areaArray.length]=new Array("27","宁夏回族自治区");
areaArray[areaArray.length]=new Array("28","重庆市");
areaArray[areaArray.length]=new Array("29","北京市");
areaArray[areaArray.length]=new Array("30","天津市");
areaArray[areaArray.length]=new Array("31","上海市");
var townArray = new Array();
townArray[townArray.length]=new Array("1","冀A","冀A");
townArray[townArray.length]=new Array("1","冀B","冀B");
townArray[townArray.length]=new Array("1","冀C","冀C");
townArray[townArray.length]=new Array("1","冀D","冀D");
townArray[townArray.length]=new Array("1","冀E","冀E");
townArray[townArray.length]=new Array("1","冀F","冀F");
townArray[townArray.length]=new Array("1","冀G","冀G");
townArray[townArray.length]=new Array("1","冀H","冀H");
townArray[townArray.length]=new Array("1","冀J","冀J");
townArray[townArray.length]=new Array("1","冀R","冀R");
townArray[townArray.length]=new Array("1","冀S","冀S");
townArray[townArray.length]=new Array("1","冀T","冀T");
townArray[townArray.length]=new Array("1","冀O","冀O");
townArray[townArray.length]=new Array("2","豫A","豫A");
townArray[townArray.length]=new Array("2","豫B","豫B");
townArray[townArray.length]=new Array("2","豫C","豫C");
townArray[townArray.length]=new Array("2","豫D","豫D");
townArray[townArray.length]=new Array("2","豫E","豫E");
townArray[townArray.length]=new Array("2","豫F","豫F");
townArray[townArray.length]=new Array("2","豫G","豫G");
townArray[townArray.length]=new Array("2","豫H","豫H");
townArray[townArray.length]=new Array("2","豫J","豫J");
townArray[townArray.length]=new Array("2","豫K","豫K");
townArray[townArray.length]=new Array("2","豫L","豫L");
townArray[townArray.length]=new Array("2","豫M","豫M");
townArray[townArray.length]=new Array("2","豫N","豫N");
townArray[townArray.length]=new Array("2","豫P","豫P");
townArray[townArray.length]=new Array("2","豫Q","豫Q");
townArray[townArray.length]=new Array("2","豫R","豫R");
townArray[townArray.length]=new Array("2","豫S","豫S");
townArray[townArray.length]=new Array("2","豫U","豫U");
townArray[townArray.length]=new Array("3","云A","云A");
townArray[townArray.length]=new Array("3","云A-V","云A-V");
townArray[townArray.length]=new Array("3","云C","云C");
townArray[townArray.length]=new Array("3","云D","云D");
townArray[townArray.length]=new Array("3","云E","云E");
townArray[townArray.length]=new Array("3","云F","云F");
townArray[townArray.length]=new Array("3","云G","云G");
townArray[townArray.length]=new Array("3","云H","云H");
townArray[townArray.length]=new Array("3","云J","云J");
townArray[townArray.length]=new Array("3","云K","云K");
townArray[townArray.length]=new Array("3","云L","云L");
townArray[townArray.length]=new Array("3","云M","云N");
townArray[townArray.length]=new Array("3","云P","云P");
townArray[townArray.length]=new Array("3","云Q","云Q");
townArray[townArray.length]=new Array("3","云R","云R");
townArray[townArray.length]=new Array("3","云S","云S");
townArray[townArray.length]=new Array("4","辽A","辽A");
townArray[townArray.length]=new Array("4","辽B","辽B");
townArray[townArray.length]=new Array("4","辽C","辽C");
townArray[townArray.length]=new Array("4","辽D","辽D");
townArray[townArray.length]=new Array("4","辽E","辽E");
townArray[townArray.length]=new Array("4","辽F","辽F");
townArray[townArray.length]=new Array("4","辽G","辽G");
townArray[townArray.length]=new Array("4","辽H","辽H");
townArray[townArray.length]=new Array("4","辽J","辽J");
townArray[townArray.length]=new Array("4","辽K","辽K");
townArray[townArray.length]=new Array("4","辽L","辽L");
townArray[townArray.length]=new Array("4","辽M","辽M");
townArray[townArray.length]=new Array("4","辽N","辽N");
townArray[townArray.length]=new Array("4","辽P","辽P");
townArray[townArray.length]=new Array("5","黑A","黑A");
townArray[townArray.length]=new Array("5","黑B","黑B");
townArray[townArray.length]=new Array("5","黑C","黑C");
townArray[townArray.length]=new Array("5","黑D","黑D");
townArray[townArray.length]=new Array("5","黑E","黑E");
townArray[townArray.length]=new Array("5","黑F","黑F");
townArray[townArray.length]=new Array("5","黑G","黑G");
townArray[townArray.length]=new Array("5","黑H","黑H");
townArray[townArray.length]=new Array("5","黑J","黑J");
townArray[townArray.length]=new Array("5","黑K","黑K");
townArray[townArray.length]=new Array("5","黑L","黑L");
townArray[townArray.length]=new Array("5","黑M","黑M");
townArray[townArray.length]=new Array("5","黑N","黑N");
townArray[townArray.length]=new Array("5","黑P","黑P");
townArray[townArray.length]=new Array("5","黑R","黑R");
townArray[townArray.length]=new Array("6","湘A","湘A");
townArray[townArray.length]=new Array("6","湘B","湘B");
townArray[townArray.length]=new Array("6","湘C","湘C");
townArray[townArray.length]=new Array("6","湘D","湘D");
townArray[townArray.length]=new Array("6","湘E","湘E");
townArray[townArray.length]=new Array("6","湘F","湘F");
townArray[townArray.length]=new Array("6","湘G","湘G");
townArray[townArray.length]=new Array("6","湘H","湘H");
townArray[townArray.length]=new Array("6","湘J","湘J");
townArray[townArray.length]=new Array("6","湘K","湘K");
townArray[townArray.length]=new Array("6","湘L","湘L");
townArray[townArray.length]=new Array("6","湘M","湘M");
townArray[townArray.length]=new Array("6","湘N","湘N");
townArray[townArray.length]=new Array("6","湘U","湘U");
townArray[townArray.length]=new Array("7","皖A","皖A");
townArray[townArray.length]=new Array("7","皖B","皖B");
townArray[townArray.length]=new Array("7","皖C","皖C");
townArray[townArray.length]=new Array("7","皖D","皖D");
townArray[townArray.length]=new Array("7","皖E","皖E");
townArray[townArray.length]=new Array("7","皖F","皖F");
townArray[townArray.length]=new Array("7","皖G","皖G");
townArray[townArray.length]=new Array("7","皖H","皖H");
townArray[townArray.length]=new Array("7","皖J","皖J");
townArray[townArray.length]=new Array("7","皖K","皖K");
townArray[townArray.length]=new Array("7","皖L","皖L");
townArray[townArray.length]=new Array("7","皖M","皖M");
townArray[townArray.length]=new Array("7","皖N","皖N");
townArray[townArray.length]=new Array("7","皖P","皖P");
townArray[townArray.length]=new Array("7","皖Q","皖Q");
townArray[townArray.length]=new Array("7","皖R","皖R");
townArray[townArray.length]=new Array("7","皖S","皖S");
townArray[townArray.length]=new Array("8","鲁A","鲁A");
townArray[townArray.length]=new Array("8","鲁B","鲁B");
townArray[townArray.length]=new Array("8","鲁C","鲁C");
townArray[townArray.length]=new Array("8","鲁D","鲁D");
townArray[townArray.length]=new Array("8","鲁E","鲁E");
townArray[townArray.length]=new Array("8","鲁F","鲁F");
townArray[townArray.length]=new Array("8","鲁G","鲁G");
townArray[townArray.length]=new Array("8","鲁H","鲁H");
townArray[townArray.length]=new Array("8","鲁J","鲁J");
townArray[townArray.length]=new Array("8","鲁K","鲁K");
townArray[townArray.length]=new Array("8","鲁L","鲁L");
townArray[townArray.length]=new Array("8","鲁M","鲁M");
townArray[townArray.length]=new Array("8","鲁N","鲁N");
townArray[townArray.length]=new Array("8","鲁P","鲁P");
townArray[townArray.length]=new Array("8","鲁Q","鲁Q");
townArray[townArray.length]=new Array("8","鲁R","鲁R");
townArray[townArray.length]=new Array("8","鲁S","鲁S");
townArray[townArray.length]=new Array("8","鲁U","鲁U");
townArray[townArray.length]=new Array("8","鲁V","鲁V");
townArray[townArray.length]=new Array("8","鲁Y","鲁Y");
townArray[townArray.length]=new Array("9","新A","新A");
townArray[townArray.length]=new Array("9","新B","新B");
townArray[townArray.length]=new Array("9","新C","新C");
townArray[townArray.length]=new Array("9","新D","新D");
townArray[townArray.length]=new Array("9","新E","新E");
townArray[townArray.length]=new Array("9","新F","新F");
townArray[townArray.length]=new Array("9","新G","新G");
townArray[townArray.length]=new Array("9","新H","新H");
townArray[townArray.length]=new Array("9","新J","新J");
townArray[townArray.length]=new Array("9","新K","新K");
townArray[townArray.length]=new Array("9","新L","新L");
townArray[townArray.length]=new Array("9","新M","新M");
townArray[townArray.length]=new Array("9","新N","新N");
townArray[townArray.length]=new Array("9","新P","新P");
townArray[townArray.length]=new Array("9","新Q","新Q");
townArray[townArray.length]=new Array("9","新R","新R");;
townArray[townArray.length]=new Array("10","苏A","苏A");
townArray[townArray.length]=new Array("10","苏B","苏B");
townArray[townArray.length]=new Array("10","苏C","苏C");
townArray[townArray.length]=new Array("10","苏D","苏D");
townArray[townArray.length]=new Array("10","苏E","苏E");
townArray[townArray.length]=new Array("10","苏F","苏F");
townArray[townArray.length]=new Array("10","苏G","苏G");
townArray[townArray.length]=new Array("10","苏H","苏H");
townArray[townArray.length]=new Array("10","苏J","苏J");
townArray[townArray.length]=new Array("10","苏K","苏K");
townArray[townArray.length]=new Array("10","苏L","苏L");
townArray[townArray.length]=new Array("10","苏M","苏M");
townArray[townArray.length]=new Array("10","苏N","苏N");
townArray[townArray.length]=new Array("11","浙A","浙A");
townArray[townArray.length]=new Array("11","浙B","浙B");
townArray[townArray.length]=new Array("11","浙C","浙C");
townArray[townArray.length]=new Array("11","浙D","浙D");
townArray[townArray.length]=new Array("11","浙E","浙E");
townArray[townArray.length]=new Array("11","浙F","浙F");
townArray[townArray.length]=new Array("11","浙G","浙G");
townArray[townArray.length]=new Array("11","浙H","浙H");
townArray[townArray.length]=new Array("11","浙J","浙J");
townArray[townArray.length]=new Array("11","浙K","浙K");
townArray[townArray.length]=new Array("11","浙L","浙L");
townArray[townArray.length]=new Array("12","赣A","赣A");
townArray[townArray.length]=new Array("12","赣B","赣B");
townArray[townArray.length]=new Array("12","赣C","赣C");
townArray[townArray.length]=new Array("12","赣D","赣D");
townArray[townArray.length]=new Array("12","赣E","赣E");
townArray[townArray.length]=new Array("12","赣F","赣F");
townArray[townArray.length]=new Array("12","赣G","赣G");
townArray[townArray.length]=new Array("12","赣H","赣H");
townArray[townArray.length]=new Array("12","赣J","赣J");
townArray[townArray.length]=new Array("12","赣K","赣K");
townArray[townArray.length]=new Array("12","赣L","赣L");
townArray[townArray.length]=new Array("12","赣M","赣M");
townArray[townArray.length]=new Array("13","鄂A","鄂A");
townArray[townArray.length]=new Array("13","鄂B","鄂B");
townArray[townArray.length]=new Array("13","鄂C","鄂C");
townArray[townArray.length]=new Array("13","鄂D","鄂D");
townArray[townArray.length]=new Array("13","鄂E","鄂E");
townArray[townArray.length]=new Array("13","鄂F","鄂F");
townArray[townArray.length]=new Array("13","鄂G","鄂G");
townArray[townArray.length]=new Array("13","鄂H","鄂H");
townArray[townArray.length]=new Array("13","鄂J","鄂J");
townArray[townArray.length]=new Array("13","鄂K","鄂K");
townArray[townArray.length]=new Array("13","鄂L","鄂L");
townArray[townArray.length]=new Array("13","鄂M","鄂M");
townArray[townArray.length]=new Array("13","鄂N","鄂N");
townArray[townArray.length]=new Array("13","鄂P","鄂P");
townArray[townArray.length]=new Array("13","鄂Q","鄂Q");
townArray[townArray.length]=new Array("13","鄂R","鄂R");
townArray[townArray.length]=new Array("13","鄂S","鄂S");
townArray[townArray.length]=new Array("14","桂A","桂A");
townArray[townArray.length]=new Array("14","桂B","桂B");
townArray[townArray.length]=new Array("14","桂C","桂C");
townArray[townArray.length]=new Array("14","桂D","桂D");
townArray[townArray.length]=new Array("14","桂E","桂E");
townArray[townArray.length]=new Array("14","桂F","桂F");
townArray[townArray.length]=new Array("14","桂G","桂G");
townArray[townArray.length]=new Array("14","桂H","桂H");
townArray[townArray.length]=new Array("14","桂J","桂J");
townArray[townArray.length]=new Array("14","桂K","桂K");
townArray[townArray.length]=new Array("14","桂L","桂L");
townArray[townArray.length]=new Array("14","桂M","桂M");
townArray[townArray.length]=new Array("14","桂N","桂N");
townArray[townArray.length]=new Array("14","桂P","桂P");
townArray[townArray.length]=new Array("14","桂R","桂R");
townArray[townArray.length]=new Array("15","甘A","甘A");
townArray[townArray.length]=new Array("15","甘B","甘B");
townArray[townArray.length]=new Array("15","甘C","甘C");
townArray[townArray.length]=new Array("15","甘D","甘D");
townArray[townArray.length]=new Array("15","甘E","甘E");
townArray[townArray.length]=new Array("15","甘F","甘F");
townArray[townArray.length]=new Array("15","甘G","甘G");
townArray[townArray.length]=new Array("15","甘H","甘H");
townArray[townArray.length]=new Array("15","甘J","甘J");
townArray[townArray.length]=new Array("15","甘K","甘K");
townArray[townArray.length]=new Array("15","甘L","甘L");
townArray[townArray.length]=new Array("15","甘M","甘M");
townArray[townArray.length]=new Array("15","甘N","甘N");
townArray[townArray.length]=new Array("15","甘P","甘P");
townArray[townArray.length]=new Array("16","晋A","晋A");
townArray[townArray.length]=new Array("16","晋B","晋B");
townArray[townArray.length]=new Array("16","晋C","晋C");
townArray[townArray.length]=new Array("16","晋D","晋D");
townArray[townArray.length]=new Array("16","晋E","晋E");
townArray[townArray.length]=new Array("16","晋F","晋F");
townArray[townArray.length]=new Array("16","晋G","晋G");
townArray[townArray.length]=new Array("16","晋H","晋H");
townArray[townArray.length]=new Array("16","晋J","晋J");
townArray[townArray.length]=new Array("16","晋K","晋K");
townArray[townArray.length]=new Array("16","晋L","晋L");
townArray[townArray.length]=new Array("16","晋M","晋M");
townArray[townArray.length]=new Array("17","蒙A","蒙A");
townArray[townArray.length]=new Array("17","蒙B","蒙B");
townArray[townArray.length]=new Array("17","蒙C","蒙C");
townArray[townArray.length]=new Array("17","蒙D","蒙D");
townArray[townArray.length]=new Array("17","蒙E","蒙E");
townArray[townArray.length]=new Array("17","蒙F","蒙F");
townArray[townArray.length]=new Array("17","蒙G","蒙G");
townArray[townArray.length]=new Array("17","蒙H","蒙H");
townArray[townArray.length]=new Array("17","蒙J","蒙J");
townArray[townArray.length]=new Array("17","蒙K","蒙K");
townArray[townArray.length]=new Array("17","蒙L","蒙L");
townArray[townArray.length]=new Array("17","蒙M","蒙M");
townArray[townArray.length]=new Array("18","陕A","陕A");
townArray[townArray.length]=new Array("18","陕B","陕B");
townArray[townArray.length]=new Array("18","陕C","陕C");
townArray[townArray.length]=new Array("18","陕D","陕D");
townArray[townArray.length]=new Array("18","陕E","陕E");
townArray[townArray.length]=new Array("18","陕F","陕F");
townArray[townArray.length]=new Array("18","陕G","陕G");
townArray[townArray.length]=new Array("18","陕H","陕H");
townArray[townArray.length]=new Array("18","陕J","陕J");
townArray[townArray.length]=new Array("18","陕K","陕K");
townArray[townArray.length]=new Array("18","陕V","陕V");
townArray[townArray.length]=new Array("19","吉A","吉A");
townArray[townArray.length]=new Array("19","吉B","吉B");
townArray[townArray.length]=new Array("19","吉C","吉C");
townArray[townArray.length]=new Array("19","吉D","吉D");
townArray[townArray.length]=new Array("19","吉E","吉E");
townArray[townArray.length]=new Array("19","吉F","吉F");
townArray[townArray.length]=new Array("19","吉G","吉G");
townArray[townArray.length]=new Array("19","吉H","吉H");
townArray[townArray.length]=new Array("19","吉J","吉J");
townArray[townArray.length]=new Array("20","闽A","闽A");
townArray[townArray.length]=new Array("20","闽B","闽B");
townArray[townArray.length]=new Array("20","闽C","闽C");
townArray[townArray.length]=new Array("20","闽D","闽D");
townArray[townArray.length]=new Array("20","闽E","闽E");
townArray[townArray.length]=new Array("20","闽F","闽F");
townArray[townArray.length]=new Array("20","闽G","闽G");
townArray[townArray.length]=new Array("20","闽H","闽H");
townArray[townArray.length]=new Array("20","闽J","闽J");
townArray[townArray.length]=new Array("20","闽K","闽K");
townArray[townArray.length]=new Array("21","贵A","贵A");
townArray[townArray.length]=new Array("21","贵B","贵B");
townArray[townArray.length]=new Array("21","贵C","贵C");
townArray[townArray.length]=new Array("21","贵D","贵D");
townArray[townArray.length]=new Array("21","贵E","贵E");
townArray[townArray.length]=new Array("21","贵F","贵F");
townArray[townArray.length]=new Array("21","贵G","贵G");
townArray[townArray.length]=new Array("21","贵H","贵H");
townArray[townArray.length]=new Array("21","贵J","贵J");
townArray[townArray.length]=new Array("22","粤A","粤A");
townArray[townArray.length]=new Array("22","粤B","粤B");
townArray[townArray.length]=new Array("22","粤C","粤C");
townArray[townArray.length]=new Array("22","粤D","粤D");
townArray[townArray.length]=new Array("22","粤E","粤E");
townArray[townArray.length]=new Array("22","粤F","粤F");
townArray[townArray.length]=new Array("22","粤G","粤G");
townArray[townArray.length]=new Array("22","粤H","粤H");
townArray[townArray.length]=new Array("22","粤J","粤J");
townArray[townArray.length]=new Array("22","粤K","粤K");
townArray[townArray.length]=new Array("22","粤L","粤L");
townArray[townArray.length]=new Array("22","粤M","粤M");
townArray[townArray.length]=new Array("22","粤N","粤N");
townArray[townArray.length]=new Array("22","粤P","粤P");
townArray[townArray.length]=new Array("22","粤Q","粤Q");
townArray[townArray.length]=new Array("22","粤R","粤R");
townArray[townArray.length]=new Array("22","粤S","粤S");
townArray[townArray.length]=new Array("22","粤T","粤T");
townArray[townArray.length]=new Array("22","粤U","粤U");
townArray[townArray.length]=new Array("22","粤V","粤V");
townArray[townArray.length]=new Array("22","粤W","粤W");
townArray[townArray.length]=new Array("22","粤X","粤X");
townArray[townArray.length]=new Array("22","粤Y","粤Y");
townArray[townArray.length]=new Array("22","粤Z","粤Z");
townArray[townArray.length]=new Array("23","川A","川A");
townArray[townArray.length]=new Array("23","川B","川B");
townArray[townArray.length]=new Array("23","川C","川C");
townArray[townArray.length]=new Array("23","川D","川D");
townArray[townArray.length]=new Array("23","川E","川E");
townArray[townArray.length]=new Array("23","川F","川F");
townArray[townArray.length]=new Array("23","川H","川H");
townArray[townArray.length]=new Array("23","川J","川J");
townArray[townArray.length]=new Array("23","川K","川K");
townArray[townArray.length]=new Array("23","川L","川L");
townArray[townArray.length]=new Array("23","川M","川M");
townArray[townArray.length]=new Array("23","川N","川N");
townArray[townArray.length]=new Array("23","川P","川P");
townArray[townArray.length]=new Array("23","川Q","川Q");
townArray[townArray.length]=new Array("23","川R","川R");
townArray[townArray.length]=new Array("23","川S","川S");
townArray[townArray.length]=new Array("23","川T","川T");
townArray[townArray.length]=new Array("23","川U","川U");
townArray[townArray.length]=new Array("23","川V","川V");
townArray[townArray.length]=new Array("23","川W","川W");
townArray[townArray.length]=new Array("23","川X","川X");
townArray[townArray.length]=new Array("23","川Y","川Y");
townArray[townArray.length]=new Array("23","川Z","川Z");
townArray[townArray.length]=new Array("24","青A","青A");
townArray[townArray.length]=new Array("24","青B","青B");
townArray[townArray.length]=new Array("24","青C","青C");
townArray[townArray.length]=new Array("24","青D","青D");
townArray[townArray.length]=new Array("24","青E","青E");
townArray[townArray.length]=new Array("24","青F","青F");
townArray[townArray.length]=new Array("24","青G","青G");
townArray[townArray.length]=new Array("24","青H","青H");
townArray[townArray.length]=new Array("25","藏A","藏A");
townArray[townArray.length]=new Array("25","藏B","藏B");
townArray[townArray.length]=new Array("25","藏C","藏C");
townArray[townArray.length]=new Array("25","藏D","藏D");
townArray[townArray.length]=new Array("25","藏E","藏E");
townArray[townArray.length]=new Array("25","藏F","藏F");
townArray[townArray.length]=new Array("25","藏G","藏G");
townArray[townArray.length]=new Array("25","藏H","藏H");
townArray[townArray.length]=new Array("25","藏J","藏J");
townArray[townArray.length]=new Array("26","琼A","琼A");
townArray[townArray.length]=new Array("26","琼B","琼B");
townArray[townArray.length]=new Array("26","琼C","琼C");
townArray[townArray.length]=new Array("26","琼D","琼D");
townArray[townArray.length]=new Array("26","琼E","琼E");
townArray[townArray.length]=new Array("27","宁A","宁A");
townArray[townArray.length]=new Array("27","宁B","宁B");
townArray[townArray.length]=new Array("27","宁C","宁C");
townArray[townArray.length]=new Array("27","宁D","宁D");
townArray[townArray.length]=new Array("27","宁E","宁E");
townArray[townArray.length]=new Array("28","渝A","渝A");
townArray[townArray.length]=new Array("28","渝B","渝B");
townArray[townArray.length]=new Array("28","渝C","渝C");
townArray[townArray.length]=new Array("28","渝F","渝F");
townArray[townArray.length]=new Array("28","渝G","渝G");
townArray[townArray.length]=new Array("28","渝H","渝H");
townArray[townArray.length]=new Array("29","京A","京A");
townArray[townArray.length]=new Array("29","京B","京B");
townArray[townArray.length]=new Array("29","京C","京C");
townArray[townArray.length]=new Array("29","京D","京D");
townArray[townArray.length]=new Array("29","京E","京E");
townArray[townArray.length]=new Array("29","京F","京F");
townArray[townArray.length]=new Array("29","京G","京G");
townArray[townArray.length]=new Array("29","京H","京H");
townArray[townArray.length]=new Array("29","京J","京J");
townArray[townArray.length]=new Array("29","京K","京K");
townArray[townArray.length]=new Array("29","京L","京L");
townArray[townArray.length]=new Array("29","京M","京M");
townArray[townArray.length]=new Array("29","京P","京P");
townArray[townArray.length]=new Array("29","京Y","京Y");
townArray[townArray.length]=new Array("30","津A","津A");
townArray[townArray.length]=new Array("30","津B","津B");
townArray[townArray.length]=new Array("30","津C","津C");
townArray[townArray.length]=new Array("30","津D","津D");
townArray[townArray.length]=new Array("30","津E","津E");
townArray[townArray.length]=new Array("30","津F","津F");
townArray[townArray.length]=new Array("30","津G","津G");
townArray[townArray.length]=new Array("31","沪A","沪A");
townArray[townArray.length]=new Array("31","沪B","沪B");
townArray[townArray.length]=new Array("31","沪C","沪C");
townArray[townArray.length]=new Array("31","沪D","沪D");
townArray[townArray.length]=new Array("31","沪R","沪R");
function setTown(obj1ID,obj2ID){
var objArea = document.getElementById(obj1ID);
var objTown = document.getElementById(obj2ID);
var i;
var itemArray = null;
if(objArea.value.length > 0){
itemArray = new Array();
for(i=0;i
= 0 ; i--){
objTown.options[i] = null;
}
if(itemArray != null){
for(i = 0 ; i < itemArray.length; i++){
objTown.options[i] = new Option(itemArray[i][1]);
if(itemArray[i][0] != null){
objTown.options[i].value = itemArray[i][0];
}
}
}
}
function setArea(obj1ID){
var objArea = document.getElementById(obj1ID);
var i;
for(i = 0 ; i < areaArray.length; i++){
objArea.options[i] = new Option(areaArray[i][1]);
objArea.options[i].value = areaArray[i][0];
}
}
</script>
<script language="javascript">
setArea('areaid');
setTown('areaid','townid');
</script><script language="javascript">
function checkkey(e)
{
var keynum
if(window.event) // IE
{
keynum = e.keyCode
}
else if(e.which) // Netscape/Firefox/Opera
{
keynum = e.which
}
//alert (keynum);
return keynum;
}
function isNumeric(string)
{var array=new Array("0","1","2","3","4","5","6","7","8","9",".");var j,i;var m=0;var arrayLen=array.length;for(i=0;i2)
{return false;}
else
{return true;}}}
function querype(){
var numberheader = document.getElementById("townid").value;
//var place_id = document.getElementById("placeid").value;
var numberno = document.getElementById("certno").value;
var carclassno = document.getElementById("hpzl").value;
var number = numberheader + numberno;
var valid = 1;
//alert (numberheader);
if (numberno == "输入车牌后5位"){
alert ("请输入有效车牌号码!");
valid = 0;}
if (numberno.indexOf("i") > 0 || numberno.indexOf("I") > 0 || numberno.indexOf("o") > 0 || numberno.indexOf("O") > 0){
alert ("正确的车牌号码里不应该包含有字母I和O !");
valid = 0;}
if (isNumeric(numberno)){
if (Number(numberno) < 100){
alert("请输入有效车牌号码!");
valid = 0;}
}
//如果是石家庄的车辆,无论违章地点,均跳转到石家庄违章查询索引页,使用石家庄数据库查询;邢台亦然;否则,再根据违章地区判断,如何跳转
if (valid == 1){
if (numberheader == "冀A"){
var gotourl = "/cgs/peccancyindexsjz.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
window.open(gotourl);
}
//else if (numberheader == "冀E"){
//var gotourl = "/cgs/peccancyindexxt.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
//window.open(gotourl);
//}
else {
//if (place_id == "01"){
//alert ("11");
//var gotourl = "/cgs/peccancyindexsjz.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
//window.open(gotourl);}
//else if (place_id == "02"){
//alert ("2");
// var gotourl = "/cgs/peccancyindexxt.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
// window.open(gotourl);}
//else {
//alert ("3");
//var gotourl = "/cgs/peccancyindexother.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
//window.open(gotourl);}
var gotourl = "/cgs/peccancyindexother.jhtm?CARNO=" + encodeURI(encodeURI(number)) + "&CARCLASS=" + encodeURI(encodeURI(carclassno));
window.open(gotourl);
}
}
}
function querycer(){
var cer = document.getElementById("certificate").value;
var newcer = '';
var len=cer.length;
if (!isNaN(cer)){
if (len == 10){
if (cer.substring(4,10) < 1000){
alert ("请输入正确的驾驶证号!");
}
else {
newcer = cer.substring(0,4) + '00' + cer.substring(4);}
}
else if (len == 12){
if (cer.substring(6,12) < 1000){
alert ("请输入正确的驾驶证号!");
}
else {
newcer = cer;}
}
else{
alert ("驾驶证号必须为10位或者12位!");}
if (newcer !=""){
//石家庄驾驶证
if (cer.substring(0,4) == 1301){
var gotourl = "/cgs/licenseindexsjz.jhtm?DOCUMENTNO=" + newcer;
window.open(gotourl);
}
//邢台驾驶证
//else if (cer.substring(0,4) == 1305){
//var gotourl = "/cgs/licenseindexxt.jhtm?DOCUMENTNO=" + newcer;
//window.open(gotourl);}
else {
var gotourl = "/cgs/licenseindexother.jhtm?DOCUMENTNO=" + newcer;
window.open(gotourl);}
}
}
else{
alert ("请输入正确的驾驶证号!");}
}
</script>