<!--
var arr_list1 = new Array(60);
var arr_list2 = new Array(60);
var addcard = 1;

// bookリストに追加
function selectlist(f_var1){
	var obj_select1 = document.all("SELLIST"+f_var1);
	var obj_select2 = document.all("SELLIST9");
	for (i = 1; i <= addcard; i++) {
		var wk_len = obj_select2.length;
		if(wk_len < 60){
			var n = obj_select1.selectedIndex;
			var nt = obj_select1.options[n].text;
			var nv = obj_select1.options[n].value;
			i = 0;
			wk_dupcard = 0;
			while(i < wk_len){
				if(obj_select2.options[i].value == nv){
					wk_dupcard++;
				}
				i++;
			}
			if(wk_dupcard < 4){
				obj_select2.length++;
				obj_select2.options[obj_select2.length - 1].text = nt;
				obj_select2.options[obj_select2.length - 1].value = nv;
				displist();
			}
		}
	}
}
// bookリストから削除
function dellist(){
	var obj_select2 = document.all("SELLIST9");
	var wk_len = obj_select2.length;
	if(wk_len >= 1){
		var wk_sel = obj_select2.selectedIndex;
		i = 0;
		while(i < wk_len){
		    arr_list1[i] = obj_select2.options[i].value;
		    arr_list2[i] = obj_select2.options[i].text;
		    i++;
		}
		wk_res = arr_list1.splice(wk_sel, 1);
		wk_res = arr_list2.splice(wk_sel, 1);
		i = 0;
		while(i < wk_len - 1){
		    obj_select2.options[i].value = arr_list1[i];
		    obj_select2.options[i].text = arr_list2[i];
		    i++;
		}
		obj_select2.length--;
	}
}
// bookリストの表示
function displist(){
	var obj_select2 = document.all("SELLIST9");
	var wk_len = obj_select2.length;
	if(wk_len >= 1){
		var wk_sel = obj_select2.selectedIndex;
		i = 0;
		while(i < wk_len){
		    arr_list1[i] = obj_select2.options[i].value+"{}"+obj_select2.options[i].text;
		    i++;
		}
		arr_list1.sort();
		i = 0;
		while(i < wk_len){
		    wk_split = arr_list1[i].split("{}");
		    obj_select2.options[i].value = wk_split[0];
		    obj_select2.options[i].text = wk_split[1];
		    i++;
		}
	}
}
// book登録
function touroku(){
	var obj_select2 = document.all("SELLIST9");
	var wk_len = obj_select2.length;
	if(30 <= wk_len && wk_len <= 60){
		i = 0;
		while(i < wk_len){
		    arr_list1[i] = obj_select2.options[i].value;
		    i++;
		}
		top.document.all("bookdata").value = arr_list1.join(",");
		top.document.f.submit();
	}else{
		if(wk_len < 30){
		    alert("30枚未満です。");
		}else{
		    alert("60枚を超えています。");
		}
	}
}
// -->