				
//サブカテゴリ名
subCatNaem1=new Array("サブカテゴリを選択","総合通販","TV通販","百貨店","スーパー･ドラックストア");				//総合通販･百貨店	
subCatNaem2=new Array("サブカテゴリを選択","レディース","メンズ","アクセサリー","キッズ･マタニティ","インナー");//ファッション	
subCatNaem3=new Array("サブカテゴリを選択","インテリア","生活用品","雑貨","ペット用品","ギフト･フラワー");		//暮らしと生活
subCatNaem4=new Array("サブカテゴリを選択","コスメ","ダイエット","健康食品","健康グッズ");						//美容･健康
subCatNaem5=new Array("サブカテゴリを選択","家電･量販店","パソコン","周辺機器","ソフト");						//家電･パソコン
subCatNaem6=new Array("サブカテゴリを選択","グルメ","スイーツ","食品･食材","お酒･飲料");						//グルメ	
subCatNaem7=new Array("サブカテゴリを選択","おもちゃ･ゲーム","アウトドア","スポーツ","旅行");					//趣味･おもちゃ
subCatNaem8=new Array("サブカテゴリを選択","本","CD","DVD");													//本･CD･DVD
subCatNaem9=new Array("サブカテゴリを選択","法人向け","資格･教育");												//ビジネス

//サブカテゴリパラメータ
subCatValue1=new Array("","101","102","103","104");																//総合通販･百貨店	
subCatValue2=new Array("","201","202","203","204","205");														//ファッション	
subCatValue3=new Array("","301","302","303","304","305");														//暮らしと生活
subCatValue4=new Array("","401","402","403","404");																//美容･健康
subCatValue5=new Array("","501","502","503","504");																//家電･パソコン
subCatValue6=new Array("","601","602","603","604");																//グルメ	
subCatValue7=new Array("","701","702","703","704");																//趣味･おもちゃ
subCatValue8=new Array("","801","802","803");																	//本･CD･DVD
subCatValue9=new Array("","901","902");																			//ビジネス

//内容を格納している配列を格納する配列
subCatNaems=new Array("",subCatNaem1,subCatNaem2,subCatNaem3,subCatNaem4,subCatNaem5,subCatNaem6,subCatNaem7,subCatNaem8,subCatNaem9);
subCatValues=new Array("",subCatValue1,subCatValue2,subCatValue3,subCatValue4,subCatValue5,subCatValue6,subCatValue7,subCatValue8,subCatValue9);
						
len=0;
for(i=0; i<subCatNaems.length; i++)if(subCatNaems[i].length > len)len=subCatNaems[i].length;
dore=0;
function SelectSubCategory(){
	dore=document.form1.category_id.selectedIndex;
	if(dore != 0){
		atai=0;
		for(i=0; i<len; i++)
			if(subCatNaems[dore].length < len && subCatNaems[dore].length <= i){
				document.form1.sub_category_id.options[i-atai]=null;
				atai++;
			}
			else 
				document.form1.sub_category_id.options[i]=new Option(subCatNaems[dore][i],subCatValues[dore][i]);
				
		}
}