function maker_setting(f)
{
	reset_maker(f);
	reset_model(f);
	setting_maker(f);       //¸ÞÀÌÄ¿º° sel ¼¼ÆÃ 
}

function change_maker(f) {
	reset_model(f);
	setting_model(f, 1);    
}

function reset_maker(f, ndxKind)
{
	 var optCar;
	 for (i = f.carmain.length; i > -1; i--)
		  f.carmain.options[i] = null
 		 optCar = new Option("++Á¦Á¶»ç++","")
	 f.carmain.options[0] = optCar
	 f.carmain.selectedIndex = 0;
}

function reset_model(f)
{
	 var optCar
	 for (i = f.carsub.length; i > -1; i--)
		  f.carsub.options[i] = null
	 optCar = new Option("++¸ðµ¨¸í++","")
	 f.carsub.options[0] = optCar;
	 f.carsub.selectedIndex = 0;

}

function setting_maker(f)
{
	var optCar;
	if( arr_car.length > 0) {
		for (i = 0; i < arr_car.length; i++) {
			optCar = new Option(arr_car[i][0],arr_car[i][0])
			f.carmain.options[f.carmain.length] = optCar
		}

		f.carmain.selectedIndex=0
		f.carsub.selectedIndex=0
	}
}

function setting_class(f)
{
	 var optCar
	 if (cls_arr.length > 0) {
		for (i = 0; i < cls_arr.length; i++) {
			optCar = new Option(cls_arr[i][0],cls_arr[i][0])
			f.carmain.options[f.carmain.length] = optCar
		}

		f.carmain.selectedIndex=0
		f.carsub.selectedIndex=0
	 }
}

function setting_model(f, ndxKind)
{
	 var ndxMaker = 0;
	 //var ndxKind = 0;
	 var strValue, optCar;
	 ndxMaker = f.carmain.selectedIndex-1
	 if(ndxMaker > -1){
	      for (i = 1; i < arr_car[ndxMaker].length; i++) {
			 strValue = arr_car[ndxMaker][i][0]
			 optCar = new Option(strValue,strValue)
			 f.carsub.options[f.carsub.length] = optCar
		 }
	 }
	 f.carsub.selectedIndex=0
}

function area_setting(f)
{
	reset_area(f);
	setting_area(f);       //¸ÞÀÌÄ¿º° sel ¼¼ÆÃ 
}

function reset_area(f, ndxKind)
{
	 var optCar;
	 for (i = f.mainmenu.length; i > -1; i--)
		  f.mainmenu.options[i] = null
 		 optCar = new Option("Áö¿ª¼±ÅÃ","")
	 f.mainmenu.options[0] = optCar
	 f.mainmenu.selectedIndex = 0;
}

function setting_area(f)
{
	var optCar;
	if( are.length > 0) {
		for (i = 0; i < are.length; i++) {
			optCar = new Option(are[i][0],are[i][0])
			f.mainmenu.options[f.mainmenu.length] = optCar
		}

		f.mainmenu.selectedIndex=0
	}
}

function kia_setting(f)
{
	reset_kia(f);
	setting_kia(f);
}
function reset_kia(f, ndxKind)
{
	 var optKia;
	 for (i = f.kia.length; i > -1; i--)
		  f.kia.options[i] = null
 		 optKia = new Option("++º¯¼Ó±â¼±ÅÃ++","")
	 f.kia.options[0] = optKia
	 f.kia.selectedIndex = 0;
}
function setting_kia(f)
{
	var optKia;
	if( sel_kia.length > 0) {
		for (i = 0; i < sel_kia.length; i++) {
			optKia = new Option(sel_kia[i],sel_kia[i])
			f.kia.options[f.kia.length] = optKia
		}
		f.kia.selectedIndex=0
	}
}


function color_setting(f)
{
	reset_color(f);
	setting_color(f);
}
function reset_color(f, ndxKind)
{
	 var optColor;
	 for (i = f.color.length; i > -1; i--)
		  f.color.options[i] = null
 		 optColor = new Option("++»ö»ó¼±ÅÃ++","")
	 f.color.options[0] = optColor
	 f.color.selectedIndex = 0;
}
function setting_color(f)
{
	var optColor;
	if( sel_color.length > 0) {
		for (i = 0; i < sel_color.length; i++) {
			optColor = new Option(sel_color[i],sel_color[i])
			f.color.options[f.color.length] = optColor
		}
		f.color.selectedIndex=0
	}
}


function year_setting(f)
{
	reset_year(f);
	setting_year(f);
}
function reset_year(f, ndxKind)
{
	 var optYear;
	 for (i = f.year.length; i > -1; i--)
		  f.year.options[i] = null
 		 optYear = new Option("³â½Ä¼±ÅÃ","")
	 f.year.options[0] = optYear
	 f.year.selectedIndex = 0;
}
function setting_year(f)
{
	var optYear;
	if( sel_year.length > 0) {
		for (i = 0; i < sel_year.length; i++) {
			optYear = new Option(sel_year[i],sel_year[i])
			f.year.options[f.year.length] = optYear
		}
		f.year.selectedIndex=0
	}
}
function year1_setting(f)
{
	reset_year1(f);
	setting_year1(f);
}
function reset_year1(f, ndxKind)
{
	 var optYear1;
	 for (i = f.year1.length; i > -1; i--)
		  f.year1.options[i] = null
 		 optYear1 = new Option("³â½Ä¼±ÅÃ","")
	 f.year1.options[0] = optYear1
	 f.year1.selectedIndex = 0;
}
function setting_year1(f)
{
	var optYear1;
	if( sel_year1.length > 0) {
		for (i = 0; i < sel_year1.length; i++) {
			optYear1 = new Option(sel_year1[i],sel_year1[i])
			f.year1.options[f.year1.length] = optYear1
		}
		f.year1.selectedIndex=0
	}
}

function oil_setting(f)
{
	reset_oil(f);
	setting_oil(f);
}
function reset_oil(f, ndxKind)
{
	 var optOil;
	 for (i = f.oil.length; i > -1; i--)
		  f.oil.options[i] = null
 		 optOil = new Option("¿¬·á¼±ÅÃ","")
	 f.oil.options[0] = optOil
	 f.oil.selectedIndex = 0;
}
function setting_oil(f)
{
	var optOil;
	if( sel_oil.length > 0) {
		for (i = 0; i < sel_oil.length; i++) {
			optOil = new Option(sel_oil[i],sel_oil[i])
			f.oil.options[f.oil.length] = optOil
		}
		f.oil.selectedIndex=0
	}
}


function price_setting(f)
{
	reset_price(f);
	setting_price(f);
}
function reset_price(f, ndxKind)
{
	 var optPrice;
	 for (i = f.price.length; i > -1; i--)
		  f.price.options[i] = null
 		 optPrice = new Option("°¡°Ý¼±ÅÃ","")
	 f.price.options[0] = optPrice
	 f.price.selectedIndex = 0;
}
function setting_price(f)
{
	var optPrice;
	if( sel_price.length > 0) {
		for (i = 0; i < sel_price.length; i++) {
			optPrice = new Option(sel_price[i],i)
			f.price.options[f.price.length] = optPrice
		}
		f.price.selectedIndex=0
	}
}


function bmaker_setting(f)
{
	reset_bmaker(f);
	reset_bmodel(f);
	setting_bmaker(f);       //¸ÞÀÌÄ¿º° sel ¼¼ÆÃ 
}

function change_bmaker(f) {
	reset_bmodel(f);
	setting_bmodel(f);    
}
function reset_bmaker(f)
{
	 var optBike;
	 for (i = f.bikemain.length; i > -1; i--)
		  f.bikemain.options[i] = null
 		 optBike = new Option("Á¦Á¶»ç¼±ÅÃ","")
	 f.bikemain.options[0] = optBike
	 f.bikemain.selectedIndex = 0;
}

function reset_bmodel(f)
{
	 var optBike
	 for (i = f.bikesub.length; i > -1; i--)
		  f.bikesub.options[i] = null
	 optBike = new Option("¸ðµ¨¸í¼±ÅÃ","")
	 f.bikesub.options[0] = optBike;
	 f.bikesub.selectedIndex = 0;

}

function setting_bmaker(f)
{
	var optBike;
	if( bike.length > 0) {
		for (i = 0; i < bike.length; i++) {
			optBike = new Option(bike[i][0],bike[i][0])
			f.bikemain.options[f.bikemain.length] = optBike
		}

		f.bikemain.selectedIndex=0
		f.bikesub.selectedIndex=0
	}
}

function setting_bmodel(f)
{
	 var ndxMaker = 0;
	 var strValue, optBike;
	 ndxMaker = f.bikemain.selectedIndex-1
	 if(ndxMaker > -1){
		  for (i = 1; i < bike[ndxMaker].length; i++) {
			 strValue = bike[ndxMaker][i]
			 optBike = new Option(strValue,strValue)
			 f.bikesub.options[f.bikesub.length] = optBike
		 }
	 }
	 f.bikesub.selectedIndex=0
}

