// JavaScript Document
var gb_type = 'image';

function Show_Table(){
	document.getElementById('div_links').style.display = 'inline';
}

function DoPop(win) {	

gb_type="page";

if (win=='win_1') {
		document.getElementById('title_window').innerHTML='How To Take Measurement Video Tutorial';
	  if (document.getElementById('popup').style.display == 'inline') {
			document.getElementById('popup').style.display = 'none';
	 		 } else {
			document.getElementById('popup').style.display = 'inline';
	 		 }
	  
		if(gb_type == "page") {
			document.getElementById('video_page').innerHTML='<iframe id="GB_frame" src="http://www.youtube.com/v/xIhRqZUpVOw&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6" frameborder="0" width="600" height="500"></iframe>';
			}
		}
		
if (win=='win_2') {
		document.getElementById('title_window').innerHTML='Send garment us';
	  if (document.getElementById('popup').style.display == 'inline') {
				document.getElementById('popup').style.display = 'none';
			  } else {
				document.getElementById('popup').style.display = 'inline';
			  }
	  
			if(gb_type == "page") {
				document.getElementById('video_page').innerHTML='<iframe id="GB_frame" src="win_2.htm" frameborder="0" width="600" height="500"></iframe>';
				}
		}

if (win=='win_3') {
		document.getElementById('title_window').innerHTML='Measure latter';
	  if (document.getElementById('popup').style.display == 'inline') {
				document.getElementById('popup').style.display = 'none';
			  } else {
				document.getElementById('popup').style.display = 'inline';
			  }
	  
			if(gb_type == "page") {
				document.getElementById('video_page').innerHTML='<iframe id="GB_frame" src="win_3.htm" frameborder="0" width="600" height="500"></iframe>';
				}
		}

}

function ClosePop() {
	gb_type="image";
	
  if (document.getElementById('popup').style.display == 'inline') {
    document.getElementById('popup').style.display = 'none';
	
  } else {
    document.getElementById('popup').style.display = 'none';
  }
  	if(gb_type == "image") {
		  document.getElementById('video_page').innerHTML='<img id="GB_frame" src="video/indicator.gif">';
	}
}


var folder ='Content';
var Folder_Name= new Array();



	Folder_Name[0]="Content";
	Folder_Name[1]="Neck";
	Folder_Name[2]="Shoulder";
	Folder_Name[3]="Sleeves";
	Folder_Name[4]="Biceps";
	Folder_Name[5]="Full_chest";
	Folder_Name[6]="Front_chest";
	Folder_Name[7]="Back_chest";
	Folder_Name[8]="Stomach";
	Folder_Name[9]="Jacket_length";
	Folder_Name[10]="Waist";
	Folder_Name[11]="Hips";
	Folder_Name[12]="Thighs";
	Folder_Name[13]="Ankle";
	Folder_Name[14]="Trouser_length";
	Folder_Name[15]="Crotch";
	




	demo1 = new Image();
	demo1.src = "images/"+folder+"/1.png";
	
	demo2 = new Image();
	demo2.src = "images/"+folder+"/2.png";
	
	demo3 = new Image();
	demo3.src = "images/"+folder+"/3.png";
	
	demo4 = new Image();
	demo4.src = "images/"+folder+"/4.png";
	
	demo5 = new Image();
	demo5.src = "images/"+folder+"/5.png";
	
	demo6 = new Image();
	demo6.src = "images/"+folder+"/6.png";
	
	demo7 = new Image();
	demo7.src = "images/"+folder+"/7.png";
	
	demo8 = new Image();
	demo8.src = "images/"+folder+"/8.png";
	
	
////////////////////////////////////////////////////////////////

function func_check(){

if (document.getElementById("Person_Check").checked == true) {
		document.getElementById("Tr_Person").style.display="block"; 

		}
	else {
		document.getElementById("Tr_Person").style.display="none"; 
		}
}
//////////////////////////////////////////////////////////////SAVE BOSILGANDA BAJARILADI

function func_save(save_part) { 

if (document.getElementById("Size_"+save_part).value=='') 
	{
		document.getElementById("Size_"+save_part).style.display="inline";
		document.getElementById("Click_"+save_part).style.display="inline";
		document.getElementById("Mark_"+save_part).style.visibility="none";
		document.getElementById("Div_"+save_part).style.display="none";	
		
	}	
	else 
	{
		document.getElementById("Size_"+save_part).style.display="none";
		document.getElementById("Click_"+save_part).style.display="none";
		document.getElementById("Mark_"+save_part).style.visibility="visible";
		document.getElementById("Div_"+save_part).style.display="inline";
		document.getElementById("Hidden_"+save_part).value=document.getElementById("Size_"+save_part).value;
				for (var i=1; i<16; i++)
				{
					if(Folder_Name[i]==save_part) 
					 { 
					document.getElementById("Div_"+Folder_Name[i]).innerHTML=" - "+document.getElementById("Size_"+Folder_Name[i]).value;
				     }
			   }
	}

				
for (var i=1; i<16; i++)
				{
					if (document.getElementById("Mark_"+Folder_Name[i]).style.visibility=="visible" ) 
						{ 
							document.getElementById("Tr_Submit").style.visibility="visible";
							document.getElementById("Size_"+Folder_Name[i]).style.display="none";
							document.getElementById("Click_"+Folder_Name[i]).style.display="none";
							document.getElementById("Div_"+Folder_Name[i]).style.display="inline";
		
						} else {
					document.getElementById("Tr_Submit").style.visibility="hidden";
					 }
			}

	document.getElementById("Tr_Submit");

	if (document.getElementById("Tr_Submit").style.visibility=="visible"){document.getElementById("Table_Check").style.display="block"};

}

function timeimgs(numb) { // Reusable timer
	thetimer = setTimeout("imgturn('" +numb+ "')", 1000);
		}


function imgturn(numb) { // Reusable image turner
				if (document.images) {
				
							if (numb == "8") { // This will loop the image
							document.getElementById('img_body').src = eval("demo8.src");
							timeimgs('1');
							}
				
					else { document.getElementById('img_body').src = eval("demo" + numb + ".src");
				
					timeimgs(numb = ++numb);
							}
					}
			}

//if (document.getElementById("Mark_"+Folder_Name[1]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[2]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[3]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[4]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[5]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[6]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[7]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[8]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[9]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[10]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[11]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[12]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[13]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[14]).style.visibility=="visible" && document.getElementById("Mark_"+Folder_Name[15]).style.visibility=="visible")

//////////////////////////////////////////////////////////////LINK BOSILGANDA BAJARILADI
var Neck_arr = new Array('34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63');
var Shoulder_arr = new Array('38 cm and 42 cm ','39 cm and 43 cm ','40 cm and 44 cm ','41 cm and 45 cm ','42 cm and 46 cm ','43 cm and 47 cm ','44 cm and 48 cm ','45 cm and 49 cm ','46 cm and 50 cm ','47 cm and 51 cm ','48 cm and 52 cm ','49 cm and 53 cm ','50 cm and 54 cm ','51 cm and 55 cm ','52 cm and 56 cm ','53 cm and 57 cm ','54 cm and 58 cm ','55 cm and 59 cm ','56 cm and 60 cm ','56 cm and 61 cm ','57 cm and 62 cm ','57 cm and 63 cm ','58 cm and 63 cm ','58 cm and 64 cm ','59 cm and 64 cm ','59 cm and 65 cm ','60 cm and 65 cm ','60 cm and 65 cm ','60 cm and 66 cm ','60 cm and 67 cm');

var Sleeves_arr = new Array('55 cm and 66 cm ','64 cm and 72 cm');

var Full_chest_arr = new Array('73 cm and 84 cm ','73 cm and 88 cm ','76 cm and 92 cm ','79 cm and 96 cm ','83 cm and 100 cm ','87 cm and 104 cm ','91 cm and 108 cm ','94 cm and 112 cm ','98 cm and 116 cm ','102 cm and 120 cm ','106 cm and 124 cm ','110 cm and 128 cm ','114 cm and 132 cm ','118 cm and 136 cm ','122 cm and 140 cm ','126 cm and 144 cm ','130 cm and 148 cm ','134 cm and 152 cm ','138 cm and 156 cm ','142 cm and 160 cm ','146 cm and 164 cm ','150 cm and 168 cm ','154 cm and 172 cm ','158 cm and 176 cm ','162 cm and 180 cm ','166 cm and 184 cm ','170 cm and 188 cm ','174 cm and 192 cm ','178 cm and 196 cm ','182 cm and 200 cm');

var Front_chest_arr = new Array('30 cm and 50 cm ','34 cm and 56 cm ','40 cm and 61 cm ','46 cm and 76 cm');

var Back_chest_arr = new Array('34 cm and 54 cm ','38 cm and 58 cm ','38 cm and 58 cm ','40 cm and 60 cm');

var Stomach_arr = new Array('69 cm and 79 cm ','70 cm and 84 cm ','72 cm and 88 cm ','75 cm and 92 cm ','78 cm and 95 cm ','83 cm and 100 cm ','87 cm and 104 cm ','91 cm and 108 cm ','94 cm and 111 cm ','98 cm and 116 cm ','102 cm and 120 cm ','106 cm and 124 cm ','110 cm and 128 cm ','114 cm and 132 cm ','118 cm and 136 cm ','122 cm and 140 cm ','126 cm and 144 cm ','130 cm and 148 cm ','134 cm and 152 cm ','138 cm and 156 cm ','142 cm and 160 cm ','146 cm and 164 cm ','150 cm and 168 cm ','154 cm and 172 cm ','159 cm and 176 cm ','163 cm and 180 cm ','167 cm and 184 cm ','171 cm and 188 cm ','175 cm and 192 cm ','179 cm and 196 cm');

var Jacket_length_arr = new Array('63 cm and 75 cm ','67 cm and 80 cm ','71 cm and 84 cm ','74 cm and 87 cm ','77 cm and 92 cm ','82 cm and 97 cm');

var Waist_arr = new Array('50 cm and 69 cm ','79 cm and 110 cm ','90 cm and 190 cm');

var Hips_arr = new Array('82 cm and 122 cm ','95 cm and 135 cm ','105 cm and 205 cm');

var Thighs_arr = new Array('41 cm and 64 cm ','55 cm and 75 cm ','65 cm and 92 cm');

var Trouser_length_arr = new Array('68 cm and 85 cm ','77 cm and 94 cm ','86 cm and 103 cm ','95 cm and 112 cm ','104 cm and 121 cm ','113 cm and 130 cm');

var Crotch_arr = new Array('41 cm and 64 cm ','55 cm and 75 cm ','65 cm and 92 cm');


//-----------------------------------------
	
var Neck_arr_1= new Array('13','14','14.1','15','15.1','15.2','16','16.1','17','17.1','17.2','18','18.1','19','19.1','19.2','20','20.1','20.2','21','21.1','21.2','22','22.1','23','23.1','24','24.1','24.2','25');

var Shoulder_arr_1 = new Array('15 inches and 17 inches ','15.1 inches and 17.1 inches ','16 inches and 17.2 inches ','16.1 inches and 18 inches ','17 inches and 18.1 inches ','17.1 inches and 19 inches ','17.2 inches and 19.1 inches ','18 inches and 19.2 inches ','18.1 inches and 20 inches ','19 inches and 20.1 inches ','19.1 inches and 20.2 inches ','19.2 inches and 21 inches ','20 inches and 21.1 inches ','20.1 inches and 22 inches ','20.2 inches and 22.1 inches ','21 inches and 22.2 inches ','21.1 inches and 23 inches ','22 inches and 23.1 inches ','22.1 inches and 24 inches ','22.2 inches and 24.1 inches ','22.3 inches and 24.2 inches ','22.4 inches and 25 inches ','23 inches and 25.1 inches ','23.1 inches and 25.2 inches ','23.2 inches and 25.3 inches ','23.3 inches and 26 inches ','24 inches and 26.1 inches ','24.1 inches and 26.2 inches ','24.2 inches and 26.3 inches ','24.3 inches and 26.4 inches');

var Sleeves_arr_1 = new Array('22 inches and 26 inches ','25 inches and 28 inches');

var Full_chest_arr_1 = new Array('29 inches and 33 inches ','29 inches and 35 inches ','30 inches and 36 inches ','31 inches and 38 inches ','33 inches and 39 inches ','34 inches and 41 inches ','36 inches and 43 inches ','37 inches and 44 inches ','39 inches and 46 inches ','40 inches and 47 inches ','42 inches and 49 inches ','43 inches and 50 inches ','45 inches and 52 inches ','46 inches and 54 inches ','48 inches and 55 inches ','50 inches and 57 inches ','51 inches and 58 inches ','53 inches and 60 inches ','54 inches and 61 inches ','56 inches and 63 inches ','57 inches and 65 inches ','59 inches and 66 inches ','61 inches and 68 inches ','62 inches and 69 inches ','64 inches and 71 inches ','65 inches and 72 inches ','67 inches and 74 inches ','69 inches and 76 inches ','70 inches and 77 inches ','72 inches and 79 inches');

var Front_chest_arr_1 = new Array('12 inches and 20 inches ','13 inches and 22 inches ','16 inches and 24 inches ','18 inches and 30 inches');

var Back_chest_arr_1 = new Array('13 inches and 21 inches ','15 inches and 23 inches ','15 inches and 23 inches ','16 inches and 24 inches');

var Stomach_arr_1 = new Array('27 inches and 31 inches ','28 inches and 33 inches ','29 inches and 35 inches ','30 inches and 36 inches ','31 inches and 37 inches ','33 inches and 39 inches ','34 inches and 41 inches ','36 inches and 43 inches ','37 inches and 44 inches ','39 inches and 46 inches ','40 inches and 47 inches ','42 inches and 49 inches ','43 inches and 50 inches ','45 inches and 52 inches ','46 inches and 54 inches ','48 inches and 55 inches ','50 inches and 57 inches ','51 inches and 58 inches ','53 inches and 60 inches ','54 inches and 61 inches ','56 inches and 63 inches ','57 inches and 65 inches ','59 inches and 66 inches ','61 inches and 68 inches ','63 inches and 69 inches ','64 inches and 71 inches ','66 inches and 72 inches ','67 inches and 74 inches ','69 inches and 76 inches ','70 inches and 77 inches');

var Jacket_length_arr_1 = new Array('25 inches and 30 inches ','26 inches and 31 inches ','28 inches and 33 inches ','29 inches and 34 inches ','30 inches and 36 inches ','32 inches and 38 inches');

var Waist_arr_1 = new Array('20 inches and 27 inches ','30 inches and 37 inches ','35 inches and 41 inches');

var Hips_arr_1 = new Array('32 inches and 48 inches ','37 inches and 53 inches ','41 inches and 81 inches');

var Thighs_arr_1 = new Array('16 inches and 25 inches ','22 inches and 30 inches ','26 inches and 36 inches');

var Trouser_length_arr_1 = new Array('27 inches and 33 inches ','30 inches and 37 inches ','34 inches and 41 inches ','37 inches and 44 inches ','41 inches and 48 inches ','44 inches and 51 inches');

var Crotch_arr_1 = new Array('16 inches and 25 inches ','22 inches and 30 inches ','26 inches and 36 inches');
//------------------------------


function func(body_part) {

	//document.getElementById("Size_"+body_part).value='';
	document.getElementById("Size_"+body_part).style.display="inline";
	document.getElementById("Click_"+body_part).style.display="inline";
	document.getElementById("Mark_"+body_part).style.visibility="hidden";

 
 
 //------------------------------for cm -------------------------------------------------// <!-- 2.54 CM = 1 Inch-->
 if (mesure_value=='cm')
	{
		
 if (body_part == "Neck") {	
		folder ='Neck';
		title_box='STEP 1: NECK';
		content_box='This measurement is for the shirt`s collar. Measure around the neck, adding 1.5 cm for the ease width. Not too tight, not too loose.';
		document.getElementById('Info').innerHTML='This measure usually varies between '+ Neck_arr[0]+' cm and '+Neck_arr[29]+' cm';
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;

		}
				
				
				
	if (body_part == "Shoulder"){
		folder ='Shoulder';
		title_box='STEP 2: SHOULDERS';
		content_box='There are 3 types of shoulders: Sloping, Normal and Square For this measurement, just measure from one shoulder bone to the other. If you have a shirt which fits you, just refer to the sleeves sewing.';
		for (var i=0; i<29; i++){
						 	 if (Neck_arr[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure()+' given for the Neck, this measure should range from '+Shoulder_arr[i]; break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Shoulder value';}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
	
							
		
	if (body_part == "Sleeves") {
		folder ='Sleeves';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 3: SLEEVES';
		content_box='Start from the shoulder bone and go all the way down the arm until the desired length is reached. Traditionally, the jacket sleeves end 4 cm after the wrist bone.';
								if (document.getElementById('height_body').value>=150 && document.getElementById('height_body').value<=180)
								{
								 
				 	document.getElementById('Info').innerHTML='Taking into consideration your heigth, your sleeves measurement should vary from '+ Sleeves_arr[0];
								}
								if (document.getElementById('height_body').value>180 && document.getElementById('height_body').value<=210)
								{
								 
							 	document.getElementById('Info').innerHTML='Taking into consideration your heigth, your sleeves measurement should vary from '+Sleeves_arr[1];
								} 
								if (document.getElementById('height_body').value<150 || document.getElementById('height_body').value>210) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
								

		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
			}
		}
		

		
		
		
	if (body_part == "Biceps") {
		folder ='Biceps';
		title_box='STEP 4: BICEPS';
		content_box='Measure around the Biceps adding 3.5 cm of allowance for the ease width of the jacket.';
		
		document.getElementById('Info').innerHTML='Biceps measurement are generally spread from 23 cm and 46 cm';
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}

		
	if (body_part == "Full_chest") {
		folder ='Full_chest';
		title_box='STEP 5: FULL CHEST';
		content_box='First measure around the chest at the widest point and add 3 cm of allowance for the ease.';
		for (var i=0; i<29; i++){

							 if (Neck_arr[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure()+' given for the Neck, this measure should range from '+Full_chest_arr[i]; break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Full chest value';}
							 }
							 
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}


		
	if (body_part == "Front_chest") {
		folder ='Front_chest';
		title_box='STEP 6: FRONT CHEST';
		content_box='For the front chest, measure from 1 armhole to the other.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=50){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr[2];
								}
							if (document.getElementById('Size_Neck').value>=51 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Front_chest_arr[3];
								}
								
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		

		
		
	if (body_part == "Back_chest") {
		folder ='Back_chest';
		title_box='STEP 7: BACK CHEST';
		content_box='Measure from 1 armhole to the other, as you did for the front chest.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=50){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr[2];
								}
							if (document.getElementById('Size_Neck').value>=51 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr[3];
								}
								
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}



	if (body_part == "Stomach") {
		folder ='Stomach';
		title_box='STEP 8: STOMACH';
		content_box='Measure around the stomach where it is the widest, like you previously did for the chest. Add 1 inch for the ease if you like your jacket fitted and 2 cm if you like it more relaxed.';
		for (var i=0; i<29; i++){
						 	 if (Neck_arr[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Stomach_arr[i]; break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Stomach value';}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}



	if (body_part == "Jacket_length") {
		folder ='Jacket_length';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 9: JACKET’S LENGTH';
		content_box='Measure from the lower collar seam and stop at the desired length. We advise you to stop at the beginning of the thumb`s nail.';
				
					
								
								if (document.getElementById('height_body').value>=150 && document.getElementById('height_body').value<=160)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[0];
									}
								if (document.getElementById('height_body').value>160 && document.getElementById('height_body').value<=170)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[1];
									}	
								if (document.getElementById('height_body').value>170 && document.getElementById('height_body').value<=180)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[2];
									}
								if (document.getElementById('height_body').value>180 && document.getElementById('height_body').value<=190)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[3];
									}
								if (document.getElementById('height_body').value>190 && document.getElementById('height_body').value<=200)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[4];
									}
								if (document.getElementById('height_body').value>200 && document.getElementById('height_body').value<=210)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr[5];
									}
								if (document.getElementById('height_body').value<150 || document.getElementById('height_body').value>210) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
						
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
				}
		}


		
	if (body_part == "Waist") {
		folder ='Waist';
		title_box='STEP 10: WAIST';
		content_box='Measure around the waist line, where the trousers is usually worn. Some people wear it higher, some lower. This is a form fitting measurement. Don`t add ease.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
		
	if (body_part == "Hips") {
		folder ='Hips';
		title_box='STEP 11: HIPS';
		content_box='This measurement is to be taken with feet placed firmly together. Measure the hips at the widest point of seat.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
	if (body_part == "Thighs") {
		folder ='Thighs';
		title_box='STEP 12: THIGHS';
		content_box='Measure the circumference of the thigh at the widest point. Add 2.50 cm, 5 cm and 8 cm of ease for fitted trousers, 2 cm for a regular fit and 3 cm for a more relaxed fit.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
	if (body_part == "Ankle") {
		folder ='Ankle';
		title_box='STEP 13: ANKLE';
		content_box='';
		document.getElementById('Info').innerHTML="This measurement is independant to any other taken previously.";
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		
		}
		
		
		
	if (body_part == "Trouser_length") {
		folder ='Trouser_length';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 14: TROUSER’S LENGTH';
		content_box='Measure from the top of the waistband to the tip of the big toe or the heel. If you are taking this measurement bare footed, keep in mind that the trousers will look shorter while wearing shoes. Once again if you have a pair of pants which has the right length for you, just give us this length.';
				
					
								
								if (document.getElementById('height_body').value>=150 && document.getElementById('height_body').value<=160)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[0];
									}
								if (document.getElementById('height_body').value>160 && document.getElementById('height_body').value<=170)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[1];
									}	
								if (document.getElementById('height_body').value>170 && document.getElementById('height_body').value<=180)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[2];
									}
								if (document.getElementById('height_body').value>180 && document.getElementById('height_body').value<=190)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[3];
									}
								if (document.getElementById('height_body').value>190 && document.getElementById('height_body').value<=200)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[4];
									}
								if (document.getElementById('height_body').value>200 && document.getElementById('height_body').value<=210)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr[5];
									}
									if (document.getElementById('height_body').value<150 || document.getElementById('height_body').value>210) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
									
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
				}
		}
		
		
	if (body_part == "Crotch") {
		folder ='Crotch';
		title_box='STEP 15: CROTCH';
		content_box='Start at the belt buckle and bring the tape in between the legs to the back of the waistband.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=34 && document.getElementById('Size_Neck').value<=37){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr[0];
								}
							if (document.getElementById('Size_Neck').value>=38 && document.getElementById('Size_Neck').value<=43){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr[1];
								}
							if (document.getElementById('Size_Neck').value>=44 && document.getElementById('Size_Neck').value<=63){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
}
		
//---------------------------------for inch ---------------------------------------------------------------------------------//
if (mesure_value=='inches')
	{

 if (body_part == "Neck") {	
		folder ='Neck';
		title_box='STEP 1: NECK';
		content_box='This measurement is for the shirt`s collar. Measure around the neck, adding 0.5 inch for the ease width. Not too tight, not too loose.';
		document.getElementById('Info').innerHTML='This measure usually varies between '+ Neck_arr_1[0]+' inches and '+Neck_arr_1[29]+' inches';
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
				
				
				
	if (body_part == "Shoulder"){
		folder ='Shoulder';
		title_box='STEP 2: SHOULDERS';
		content_box='There are 3 types of shoulders: Sloping, Normal and Square For this measurement, just measure from one shoulder bone to the other. If you have a shirt which fits you, just refer to the sleeves sewing.';
		for (var i=0; i<29; i++){
						 	 if (Neck_arr_1[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure()+' given for the Neck, this measure should range from '+Shoulder_arr_1[i];  break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Shoulder value';}
								
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
	
							
		
	if (body_part == "Sleeves") {
		folder ='Sleeves';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 3: SLEEVES';
		content_box='Start from the shoulder bone and go all the way down the arm until the desired length is reached. Traditionally, the jacket sleeves end 1.5 inch after the wrist bone.';
								if (document.getElementById('height_body').value>=4.9 && document.getElementById('height_body').value<=5.9)
								{
								 
				 	document.getElementById('Info').innerHTML='Taking into consideration your heigth, your sleeves measurement should vary from '+ Sleeves_arr_1[0];
								}
								if (document.getElementById('height_body').value>5.9 && document.getElementById('height_body').value<=6.9)
								{
								 
							 	document.getElementById('Info').innerHTML='Taking into consideration your heigth, your sleeves measurement should vary from '+Sleeves_arr_1[1];
								} 
								if (document.getElementById('height_body').value<4.9 || document.getElementById('height_body').value>6.9) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
								

		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
			}
		}
		


	if (body_part == "Biceps") {
		folder ='Biceps';
		title_box='STEP 4: BICEPS';
		content_box='Measure around the Biceps adding 1.27 inch of allowance for the ease width of the jacket.';
		
		document.getElementById('Info').innerHTML='Biceps measurement are generally spread from 9 inches and 18 inches';
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}

		
	if (body_part == "Full_chest") {
		folder ='Full_chest';
		title_box='STEP 5: FULL CHEST';
		content_box='First measure around the chest at the widest point and add 1 inch  of allowance for the ease.';
		for (var i=0; i<29; i++){
						 	 if (Neck_arr_1[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should range from '+Full_chest_arr_1[i];  break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Full chest value';}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}


		
	if (body_part == "Front_chest") {
		folder ='Front_chest';
		title_box='STEP 6: FRONT CHEST';
		content_box='For the front chest, measure from 1 armhole to the other.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=19){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from '+Front_chest_arr_1[2];
								}
							if (document.getElementById('Size_Neck').value>=20 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Front_chest_arr_1[3];
								}
								
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		

		
		
	if (body_part == "Back_chest") {
		folder ='Back_chest';
		title_box='STEP 7: BACK CHEST';
		content_box='Measure from 1 armhole to the other, as you did for the front chest.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=19){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr_1[2];
								}
							if (document.getElementById('Size_Neck').value>=20 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Back_chest_arr_1[3];
								}
								
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}



	if (body_part == "Stomach") {
		folder ='Stomach';
		title_box='STEP 8: STOMACH';
		content_box='Measure around the stomach where it is the widest, like you previously did for the chest. Add 1 inch for the ease if you like your jacket fitted and 0.7 inch if you like it more relaxed.';
		for (var i=0; i<29; i++){
						 	 if (Neck_arr_1[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Stomach_arr_1[i]; break;
								} else {document.getElementById('Info').innerHTML='Check your neck value, if is it correct then give your Stomach value';}
								 
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}



	if (body_part == "Jacket_length") {
		folder ='Jacket_length';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 9: JACKET’S LENGTH';
		content_box='Measure from the lower collar seam and stop at the desired length. We advise you to stop at the beginning of the thumb`s nail.';
				
					
								
								if (document.getElementById('height_body').value>=4.9 && document.getElementById('height_body').value<=5.2)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[0];
									}
								if (document.getElementById('height_body').value>5.2 && document.getElementById('height_body').value<=5.6)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[1];
									}	
								if (document.getElementById('height_body').value>5.6 && document.getElementById('height_body').value<=5.9)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[2];
									}
								if (document.getElementById('height_body').value>5.9 && document.getElementById('height_body').value<=6.2)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[3];
									}
								if (document.getElementById('height_body').value>6.2 && document.getElementById('height_body').value<=6.6)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[4];
									}
								if (document.getElementById('height_body').value>6.6 && document.getElementById('height_body').value<=6.9)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your jacket`s length should vary from  '+Jacket_length_arr_1[5];
									}
								if (document.getElementById('height_body').value<4.9 || document.getElementById('height_body').value>6.9) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
						
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
				}
		}


		
	if (body_part == "Waist") {
		folder ='Waist';
		title_box='STEP 10: WAIST';
		content_box='Measure around the waist line, where the trousers is usually worn. Some people wear it higher, some lower. This is a form fitting measurement. Don`t add ease.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' + Waist_arr_1[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
		
	if (body_part == "Hips") {
		folder ='Hips';
		title_box='STEP 11: HIPS';
		content_box='This measurement is to be taken with feet placed firmly together. Measure the hips at the widest point of seat.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Hips_arr_1[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
	if (body_part == "Thighs") {
		folder ='Thighs';
		title_box='STEP 12: THIGHS';
		content_box='Measure the circumference of the thigh at the widest point. Add 1 inch of ease for fitted trousers, 2  inches for a regular fit and 3 inches for a more relaxed fit.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='With '+ document.getElementById("Size_Neck").value +' '+ measure() +' given for the neck, this measure should vary from ' +Thighs_arr_1[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
		
		
		
	if (body_part == "Ankle") {
		folder ='Ankle';
		title_box='STEP 13: ANKLE';
		content_box='';
		document.getElementById('Info').innerHTML="This measurement is independant to any other taken previously.";
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		
		}
		
		
		
	if (body_part == "Trouser_length") {
		folder ='Trouser_length';
		if (document.getElementById('height_body').value=="") {alert("Please, enter height of your body!");}
		else {
		title_box='STEP 14: TROUSER’S LENGTH';
		content_box='Measure from the top of the waistband to the tip of the big toe or the heel. If you are taking this measurement bare footed, keep in mind that the trousers will look shorter while wearing shoes. Once again if you have a pair of pants which has the right length for you, just give us this length.';
				
					
								
								if (document.getElementById('height_body').value>=4.9 && document.getElementById('height_body').value<=5.2)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[0];
									}
								if (document.getElementById('height_body').value>5.2 && document.getElementById('height_body').value<=5.6)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[1];
									}	
								if (document.getElementById('height_body').value>5.6 && document.getElementById('height_body').value<=5.9)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[2];
									}
								if (document.getElementById('height_body').value>5.9 && document.getElementById('height_body').value<=6.2)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[3];
									}
								if (document.getElementById('height_body').value>6.2 && document.getElementById('height_body').value<=6.6)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[4];
									}
								if (document.getElementById('height_body').value>6.6 && document.getElementById('height_body').value<=6.9)
									{
										document.getElementById('Info').innerHTML='Taking into consideration your heigth, your trousers length should vary from '+Trouser_length_arr_1[5];
									}
									if (document.getElementById('height_body').value<4.9 || document.getElementById('height_body').value>6.9) 
									{document.getElementById('Info').innerHTML="Check height of your body!";} 
									
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
				}
		}
		
		
	if (body_part == "Crotch") {
		folder ='Crotch';
		title_box='STEP 15: CROTCH';
		content_box='Start at the belt buckle and bring the tape in between the legs to the back of the waistband.';
		for (var i=0; i<29; i++){
						 	 if (document.getElementById('Size_Neck').value>=13 && document.getElementById('Size_Neck').value<=14){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr_1[0];
								}
							if (document.getElementById('Size_Neck').value>=15 && document.getElementById('Size_Neck').value<=17){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr_1[1];
								}
							if (document.getElementById('Size_Neck').value>=18 && document.getElementById('Size_Neck').value<=27.5){
								 
							 	document.getElementById('Info').innerHTML='This measurement is generally quite similar (+1" / +4") to the thighs measurement. '+ Crotch_arr_1[2];
								}
							 }
		document.getElementById("title_box").innerHTML=title_box;
		document.getElementById("content_box").innerHTML=content_box;
		}
}
//---------------------------------------------------------------------------------------------------------------------------//
	demo1 = new Image();
	demo1.src = "images/"+body_part+"/1.png";
	
	demo2 = new Image();
	demo2.src = "images/"+folder+"/2.png";
	
	demo3 = new Image();
	demo3.src = "images/"+folder+"/3.png";
	
	demo4 = new Image();
	demo4.src = "images/"+folder+"/4.png";
	
	demo5 = new Image();
	demo5.src = "images/"+folder+"/5.png";
	
	demo6 = new Image();
	demo6.src = "images/"+folder+"/6.png";
	
	demo7 = new Image();
	demo7.src = "images/"+folder+"/7.png";
	
	demo8 = new Image();
	demo8.src = "images/"+folder+"/8.png";

	
}







/*function Values(body_part){

		if(body_part=='Neck') 
			{ 
			 document.getElementById('Neck_Info').innerHTML='34 and 64';
			 document.getElementById('Neck_Info').style.visibility='visible';
			 
			 //for (var i=2; i<16; i++) {document.getElementById(Folder_Name[i]+"_Info").value='';} 
	
			 
			}
		
//---------------Shoulder ---------------------
		if(body_part=='Shoulder') 
			{ 
				 if (document.getElementById("Mark_Neck").style.visibility=="visible"){ 
						 
						 for (var i=0; i<29; i++){
						 	 if (Neck_arr[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('').innerHTML=Shoulder_arr[i];
								document.getElementById('').style.visibility='visible';
								} 
							 }
			 
				 	} else {
						document.getElementById('').innerHTML='';
					 	document.getElementById('').style.visibility='hidden';
				 }
			}
//-------------Sleeves-------------------------
		if(body_part=='Sleeves') 
			{ 
				 if (document.getElementById("Mark_Neck").style.visibility=="visible"){ 
						 
						 for (var i=0; i<29; i++){
						 	 if (Neck_arr[i]==document.getElementById("Size_Neck").value){
							 	document.getElementById('Sleeves_Info').innerHTML=Sleeves_arr[i];
								document.getElementById('Sleeves_Info').style.visibility='visible';
								} 
							 }
			 
				 	} else {
						document.getElementById('Sleeves_Info').innerHTML='';
					 	document.getElementById('Sleeves_Info').style.visibility='hidden';
				 }
			}

			
			
	}
*/

