﻿function input_write_data(face1,face2,face3,face4,face5,face6)
{
	this.flg = 0;//flg
	this.face1 = face1;
	this.face2 = face2;
	this.face3 = face3;
	this.face4 = face4;
	this.face5 = face5;
	this.face6 = face6;
}



var write_code_data=new Array();
write_code_data["0000"]= new input_write_data("CM31AB","Standard Type","Polished","Black", "Mesh", "&yen172,620　(&yen164,400)");
write_code_data["0001"]= new input_write_data("CM32AB","Standard Type","Polished","Black","Upholstery","&yen172,620　(&yen164,400)");
write_code_data["0002"]= new input_write_data("CM32AB","Standard Type", "Polished", "Black", "Leather", "&yen198,975　(&yen189,500)");
write_code_data["0100"]= new input_write_data("CM31SB","Standard Type", "Silver", "Black", "Mesh", "&yen160,125　(&yen152,500)");
write_code_data["0101"]= new input_write_data("CM32SB","Standard Type","Silver","Black", "Upholstery", "&yen160,125　(&yen152,500)");
write_code_data["0110"]= new input_write_data( "CM31SG", "Standard Type", "Silver", "Gray", "Mesh", "&yen160,125　(&yen152,500)");
write_code_data["0111"]= new input_write_data( "CM32SG","Standard Type", "Silver", "Gray", "Upholstery", "&yen160,125　(&yen152,500)");
write_code_data["0200"]= new input_write_data( "CM31BB","Standard Type", "Black", "Black", "Mesh", "&yen160,125　(&yen152,500)");
write_code_data["0201"]= new input_write_data( "CM32BB","Standard Type","Black","Black", "Upholstery", "&yen160,125　(&yen152,500)");
write_code_data["1000"]= new input_write_data( "CM51AB","Headrest Type","Polished","Black", "Mesh", "&yen189,000　(&yen180,000)");
write_code_data["1001"]= new input_write_data( "CM52AB","Headrest Type","Polished","Black","Upholstery","&yen189,000　(&yen180,000)");
write_code_data["1002"]= new input_write_data("CM52AB","Headrest Type", "Polished", "Black", "Leather", "&yen215,355　(&yen205,100)");
write_code_data["1100"]= new input_write_data( "CM51SB","Headrest Type", "Silver", "Black", "Mesh", "&yen176,505　(&yen168,100)");
write_code_data["1101"]= new input_write_data( "CM52SB","Headrest Type","Silver","Black", "Upholstery", "&yen176,505　(&yen168,100)");
write_code_data["1110"]= new input_write_data( "CM51SG", "Headrest Type", "Silver", "Gray", "Mesh", "&yen176,505　(&yen168,100)");
write_code_data["1111"]= new input_write_data( "CM52SG","Headrest Type", "Silver", "Gray", "Upholstery", "&yen176,505　(&yen168,100)");
write_code_data["1200"]= new input_write_data( "CM51BB","Headrest Type", "Black", "Black", "Mesh", "&yen176,505　(&yen168,100)");
write_code_data["1201"]= new input_write_data("CM52BB","Headrest Type","Black","Black", "Upholstery", "&yen176,505　(&yen168,100)");

write_code_data["2002"]= new input_write_data("CM35AB","All Leather Type Standard","Polished","Black","Leather","&yen362,670　(&yen345,400)");
write_code_data["3002"]= new input_write_data("CM55AB","All Leather Type Headrest Type","Polished","Black","Leather","&yen412,755　(&yen393,100)");




function input_write_color_data(face1,face2,face3,face4,face5,face6)
{
	this.flg = 0;//flg
	this.face1 = face1;
	this.face2 = face2;
	this.face3 = face3;
}

var write_color_code_data=new Array();
write_color_code_data[0]= new input_write_color_data("FBH1","FBF1","Black");
write_color_code_data[1]= new input_write_color_data("FBH3","FBF3","Light Gray");
write_color_code_data[2]= new input_write_color_data("FGH3","FGF3","White");//new
write_color_code_data[3]= new input_write_color_data("FBH4","FBF4","Dark Blue");
write_color_code_data[4]= new input_write_color_data("FBH5","FBF5","Light Blue");
write_color_code_data[5]= new input_write_color_data("FBH6","FBF6","Lime Green");
write_color_code_data[6]= new input_write_color_data("FGH6","FGF6","Pistachio Green");//new
write_color_code_data[7]= new input_write_color_data("FGH7","FGF7","Sand Beige");//new
write_color_code_data[8]= new input_write_color_data("FGH1","FGF1","Mango Yellow");//new
write_color_code_data[9]= new input_write_color_data("FBH8","FBF8","Orange");
write_color_code_data[10]= new input_write_color_data("FBH9","FBF9","Red");
write_color_code_data[11]= new input_write_color_data("FGH8","FGF8","Dark Brown");//new
write_color_code_data[12]= new input_write_color_data("FBG1","FBG1","Black");//Leather
write_color_code_data[13]= new input_write_color_data("FGG3","FGG3","White");//Leather
write_color_code_data[14]= new input_write_color_data("FGG7","FGG7","Beige");//Leather
write_color_code_data[15]= new input_write_color_data("P676","P676","Black");//Leather
write_color_code_data[16]= new input_write_color_data("PB02","PB02","White");//Leather
write_color_code_data[17]= new input_write_color_data("PB05","PB05","Beige");//Leather
/////////////////////////////////////////////
/////////////////////////////////////////////
function outputLAYER(layName,html)
{
   if(document.getElementById){       //N6,Moz,IE5,IE6
      document.getElementById(layName).innerHTML=html;
    }else if(document.all){                      //IE4
       document.all(layName).innerHTML=html
    }else if(document.layers){
       with(document.layers[layName].document){
			open();
			write(html);
			close();
      }
    }
}
/////////////////////////////////////////////
/////////////////////////////////////////////
var seihin_coda_flg="CM51SB-FBH1";
var color_coda_data_flg="";
function kakidasi_layer_data()
{
	if(seat_flg=="0"){
		color_coda_data_flg = write_color_code_data[color_flg].face1;
	}else if(seat_flg=="1"){
		color_coda_data_flg = write_color_code_data[color_flg].face2;
	}else if(seat_flg=="2"){
		if(type_flg=="2"||type_flg=="3"){
			if(color_flg==12){var a =15;}
			else if(color_flg==13)var a =16;
			else if(color_flg==14)var a =17;
			color_coda_data_flg = write_color_code_data[a].face2;
		}else{
			color_coda_data_flg = write_color_code_data[color_flg].face2;
		}
		
	}
	
	seihin_coda_flg=write_code_data[code_hakidasi_flg].face1+"-"+color_coda_data_flg;
	
	//outputLAYER("codelayer",seihin_coda_flg);
	//outputLAYER("typelayer",write_code_data[code_hakidasi_flg].face2);
	//outputLAYER("framelayer",write_code_data[code_hakidasi_flg].face3);
	//outputLAYER("bodylayer",write_code_data[code_hakidasi_flg].face4);
	//outputLAYER("seatlayer",write_code_data[code_hakidasi_flg].face5);
	//outputLAYER("colorlayer",write_color_code_data[color_flg].face3);
	//outputLAYER("kinngakulayer",write_code_data[code_hakidasi_flg].face6);
}

