var array_area_001 = new Array(); var array_area_001_text = new Array(); var array_area_002 = new Array(); var array_area_002_text = new Array(); var array_area_004 = new Array(); var array_area_004_text = new Array(); var array_area_005 = new Array(); var array_area_005_text = new Array(); var array_area_006 = new Array(); var array_area_006_text = new Array(); var array_area_007 = new Array(); var array_area_007_text = new Array(); function change_area_category(arrayname,target_select,order) { var array_area_none = new Array(); var array_area_none_text = new Array(); var target_select = eval(target_select); if(arrayname == '') { arrayname = 'none'; } if(arrayname != '') { if( order == 1 ){ var the_array = eval('array_area_'+arrayname); var the_array_area_text = eval('array_area_'+arrayname+'_text'); }else{ var the_array = eval('array_area_'+arrayname+'_code'); var the_array_area_text = eval('array_area_'+arrayname+'_text_text'); } target_select.options.length = the_array.length+1; for (i=0; i <= the_array.length; i++) { if(i == 0) { target_select.options[i].text = '--------시--------'; target_select.options[i].value = ''; continue; } else { target_select.options[i].text = the_array_area_text[i-1]; target_select.options[i].value = the_array[i-1]; } } target_select.options[0].selected = true; tmp = parseInt(order)+1; for(a=2;a>tmp;a--) { temp = eval('document.fmember.ca_name'+a); for (i=0; i < temp.length; i++) { if(i == 0) { temp.options[i].text = '--------지역--------'; temp.options[i].value = ''; continue; } else { temp.options[i].text = ''; temp.options[i].value = ''; } } temp.options[0].selected = true; } } return; }