function aClass(Pid, Cname) { if (aClass.arguments.length < 2) alert("传入的参数错误!") else { this.Data = Pid; this.Text = Cname; } } function chgbox(aSrc, aDes, aClass, aRemain){ if (chgbox.arguments.length < 3) alert("传入的参数错误!") else if (aSrc.type != "select-one") alert("传入的参数错误!") else if (aClass == null) alert("aClass未定义错误!") else { if (aRemain==null) aRemain = 1; chgItem(aSrc.options[aSrc.selectedIndex].value, aDes, aClass, aRemain); } } function chgItem(aValue, aDes, aClass, aRemain){ if (chgItem.arguments.length<3) alert("参数传入错误!") else if (aClass==null) alert("错误!aClass没有定义!") else{ if (aRemain==null) aRemain = 1; deleteAllItem(aDes, aRemain); for (var i=0; i aRemain-1; i--) aList.options[i] = null; } function addItem(aList, aText, aValue) { var aOption = new Option(aText, aValue); eval("aList.options[aList.options.length]=aOption"); } function change_area(aForm) { chgbox(aForm.province, aForm.city, f_Set0 , 0); } function getcityindex(province,cityname){ var j=0; for (var i=0; i